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)
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to