[OpenBIOS] Nested [IFDEF]s not working?

Andreas Färber andreas.faerber at web.de
Sat Dec 4 12:35:22 CET 2010


Am 04.12.2010 um 03:16 schrieb Segher Boessenkool:

>> I don't really understand the code in forth/lib/preprocessor.fs but  
>> it
>> looks as if some state is held in three variables. Also the [ELSE]
>> case handling in the [IF] loop looks unintuitive...
>
> It looks like a bastardised version of the example code in the  
> standard.
> It only handles nested [IF] , not [IFDEF] etc.  It wouldn't be hard to
> add it (just add and extra case, where it does a string compare for
> [IF] ).

Thanks for the hint, working nicely now!

Andreas



More information about the OpenBIOS mailing list