Register | Login
Forum Index > Source Help > detecting '\'
Author Message
Pages: 1 2 3 4 5
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[1148] - posted: 2012-05-18 17:35:34

it seems ziron erases the white space inside '' , strange.

i was trying to put white space between tokens.

http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[1149] - posted: 2012-05-18 17:37:38
no, the problem is macros can not contain direct call to a function smile

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[1150] - posted: 2012-05-18 17:39:06

sorry , what do you mean?

http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[1151] - posted: 2012-05-18 17:46:38
Code:
eax = Ziron_GetStringValue();
H_strjoin(@val, ' ' ,eax);


Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[1152] - posted: 2012-05-18 17:53:22

when use your suggestion , the plugin hangs.

anyway i solved that by this
Code:
  H_strcat(@val, ' ');
  H_strcat(@val, Ziron_GetStringValue());


http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[1153] - posted: 2012-05-18 17:56:16
probably because eax is trashed in join, so you could just use another register

Code:
edx = Ziron_GetStringValue();


Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[1154] - posted: 2012-05-18 18:02:04


I want to take your opinion in something.

the define directive as function_like_macro has parameters and those paras exist in macro body.

as you can see from my plugin , i was trying to use inline procedure to convert the define
macro, also as you know inline procedure function need a "$" term before the para in the procedure body. so i have to save each paras in an array and check the define body for matching with any para and if so i have to put "S" term before it.

so it hard to do that, instead can we allow inline procedure without "$" before each param
inside the body of porcedure.

http://www.freewebs.com/ogremagic/index.htm
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[1155] - posted: 2012-05-18 18:03:34

oh . using edi solve the problem.

http://www.freewebs.com/ogremagic/index.htm
Pages: 1 2 3 4 5
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 19 user(s) online. 0 member(s) and 19 guest(s)
Most users ever online was 1046, January 28, 2022, 2:08 pm.


Statistics:
Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51
Welcome to our newest member, yecate
const Copyright = '2011-2024 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd