Lisp HUG Maillist Archive

foreign-parser and #defines ?

It seems that the foreign-parser skips all the #defines in my C header 
files.

For example a #define as simple as:

#define    SDL_INIT_TIMER        1

is skipped completely.

Is there a setting or flag that will force the parser to convert #defines?

Thanks,
-Luke


Re: foreign-parser and #defines ?

Luke J Crook wrote:

> #define    SDL_INIT_TIMER        1
>
> Is there a setting or flag that will force the parser to convert 
> #defines?
>
What I am looking for is for #defines to be converted to constants so 
that I can pass them from within Lisp code to a C library.

-Luke


Re: foreign-parser and #defines ?

Unable to parse email body. Email id is 4294

Updated at: 2020-12-10 08:51 UTC