Thread: EQ2Ext
View Single Post
  #13  
Unread 10-17-2006, 03:56 AM
Erahain Erahain is offline
A Crazed Gnoll
 
Join Date: Jan 2006
Server: Antonia Bayle
Posts: 23
Default

The problem with this library might be performance, but we'll see.

I might also write a simple preprocessor in C, with including sources, so function calls and such doesnt have to be so complicated.

Unfortunately, using EQ2Ext isn't "simple".

'/EQ2Ext.D.For.Condition' = 'a == 1'
'/EQ2Ext.D.For.Init' = 'a = 0'
'/EQ2Ext.D.For.Next' = 'a = a + 1'
'/EQ2Ext.D.For.Body' = 'do something...'
'/EQ2Ext.D.For.Activated' = true

Alternate way (depending on if I want to move out certain
key features out from the EQ2Ext page):
'/For.If' = 'a == 1'
'/For.Next' = 'a = a + 1'
...

... with the preprocessor (suggestion)...
$for(a = 0; a == 1; a = a + 1) {
// block of code
}
Reply With Quote