"Brett W. Denner" wrote:
> 
> Does Inline filter C source files through the C preprocessor?  When I try to
> use #define to create a macro, or use #ifdef to turn off lines of source
> code, there seems to be no effect.  Can anyone explain if this is the
> expected behavior for Inline, or whether it is indeed a bug?

You can think of it this way.

1) Raw Inline C code
2) Inline parses for function definitions
3) Add AUTOINCLUDE headers.
4) Generate XS file with above code and XS in same file.
5) Start build process.
  A) xsubpp turns XS into pure C.
  B) Normal C compile including preprocessing.

If you were hoping to have preprocessing happen between 1 & 2, check out
Neil Watkiss' Inline::Filters.

Cheers, Brian

-- 
perl -le 'use Inline C=>q{SV*JAxH(char*x){return newSVpvf
("Just Another %s Hacker",x);}};print JAxH+Perl'

Reply via email to