[fpc-pascal] FPC macros

Tim Blume tim2.blume at web.de
Sat Nov 29 15:03:00 CET 2014


Hi,

for several Pascal headers for C libraries it would be very nice, when 
macros defined in the interface section would be globally avaible.

E.g. in Assimp there are macros like this:

#define AI_MATKEY_NAME "?mat.name",0,0

Which I translated like this:

{$DEFINE AI_MATKEY_NAME:='?mat.name',0,0}

But since they are not avaible in other units, these translation have to 
be in an external *.inc file, which have to be included in every unit 
want to use these macros. This is quite disgusting imo.

Greetings
   Tim Blume (End)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20141129/d7733f5a/attachment.html>


More information about the fpc-pascal mailing list