[fpc-pascal] h2pas and #elif

Peter Vreman peter at freepascal.org
Sun Mar 20 18:41:03 CET 2005


> Hi,
>
> I tryed to convert a couple of .h files to
> pascal units and run across the problem
> that #elif aren't converted properly,
> ie that they are left as
> (*** was #elif ****){$else defined(WIN32)}
> and thus completely ignored.
>
> A quick look at the h2pas code revieled
> that this case isn't handled at all
> (ie needs to build a stack to keep track
> of #elif's).
>
> Did anyone else already solve this problem
> or shall i try to extend h2pas ?

If it is not in the current code then it is not supported. You are welcome
to extend h2pas. Current FPC 1.9.x supports {$elseif} so it shouldn't be
that hard.









More information about the fpc-pascal mailing list