Page 1 of 1

PostPosted: Sat Apr 12, 2003 9:52 am
by joh.becker

I tried to use macro for a small function to make it faster. But I can't use variables, just get a error message saying "expression required". If I use a constant it works fine.

Is a variable not possible or am I doing something wrong?

#define ala_write_abs(offset,val) {fileseek(aladinhandle,offset,0); writebyte(aladinhandle, val);}


PostPosted: Sun Apr 13, 2003 11:53 am
by guy
Don't put braces around the macro expansion.

#define ala_write_abs(offset,val) fileseek(aladinhandle,offset,0); writebyte(aladinhandle, val)

PocketC CE API interface:
PCForm and CE API forum: