Re: Conditional includes
- Posted by jimcbrown (admin) Nov 12, 2010
- 1241 views
Um, well, yeah... heh, heh...
rid.ex was just a quick&dirty hack to prototype a proof-of-concept.
It's impossible in Euphoria, but you can do it in a preprocessor, here's an quick example, you can redo it much better, etc...
irv said...
Interestingly enough, it worked, even though it failed (due to insufficient privileges, I think)
/home/irv/rid.ex:435 in procedure parseFile() bad file number (-1) ... called from /home/irv/rid.ex:514 in function preprocess() ... called from /home/irv/rid.ex:555 in procedure run() ... called from /home/irv/rid.ex:562 --> See ex.err Preprocessor command failed (256): eui rid.ex -i /usr/share/euphoria/include/std/dll.e -o /usr/share/euphoria/include/std/dll.pp.e File sez routine_id is 2 do_fn sez routine_id is: 2 Main sez routine_id is: 2