Skip to content
Low-level programming · Higher-level thinking
Login Register
Forum / Source Help

detecting '\'

A community discussion post from the original code:zIRON forum.

Replies

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

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

Colin admin
Posts
928
Threads
49
Location
Bulgaria

no, the problem is macros can not contain direct call to a function :)

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

sorry , what do you mean?

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

Colin admin
Posts
928
Threads
49
Location
Bulgaria
eax = Ziron_GetStringValue();
H_strjoin(@val, ' ' ,eax);
Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

when use your suggestion , the plugin hangs.

anyway i solved that by this

  H_strcat(@val, ' ');
  H_strcat(@val, Ziron_GetStringValue());

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

Colin admin
Posts
928
Threads
49
Location
Bulgaria

probably because eax is trashed in join, so you could just use another register

edx = Ziron_GetStringValue();
Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

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 member
Posts
639
Threads
104
Location
Alex, Egypt

oh . using edi solve the problem.

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