Register | Login
Forum Index > Plugins > #define plugin
Author Message
Pages: 1 2 3 4
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[1209] - posted: 2012-05-22 23:07:58

also i tried this but no luck.
Code:
  if( tok == zirDirective) 


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

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[1210] - posted: 2012-05-22 23:20:08

oh sorry my mistake, zirDirective works well.

thanks.

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

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[1211] - posted: 2012-05-23 01:50:05
good to hear, look forward to seeing your update 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
[1224] - posted: 2012-05-24 20:33:37


ok , i think there is a bug in inline function.

here is my define code
Code:
  #define Absi(x)   eax=x; cdq; xor eax,edx;   eax-=edx;   


this macro return the abslute value.

it converted to this by define handler
Code:
inline function Absi(x){eax =  $x ; cdq ; xor eax , edx ; eax -= edx ; $return eax }


the problem is here , when put this code it complied ok
Code:
  print( Absi(100)  , '\r\n'); 


and this refused to compile
Code:
  print( Absi(-100)  , '\r\n'); 

and give this error

[55,18]: Expected , or ) but found 100 in [test_def.zir]
Code:
print( Absi(-100) , '\r\n');


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


Quick reply:

Message:



Currently Active Users:
There are currently 2 user(s) online. 0 member(s) and 2 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