![]() |
Definition of macros in the compiler - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: Wishlist (https://www.boriel.com/forum/forumdisplay.php?fid=14) +---- Thread: Definition of macros in the compiler (/showthread.php?tid=516) |
Definition of macros in the compiler - wilco2009 - 12-18-2012 Could be a good idea to add the possibility to define macros in the same way than C "define" directive. That's one of the things I miss when I'm programming in ZXBasic Re: Definition of macros in the compiler - boriel - 12-19-2012 wilco2009 Wrote:Could be a good idea to add the possibility to define macros in the same way than C "define" directive.This is already implemented. ZX BAsic uses #define the same way C does. E.g. have a look to library/retrace.bas source code. Re: Definition of macros in the compiler - wilco2009 - 12-19-2012 Great notice. I will try it now |