Subject: | My source breaks the xs file (simple fix) |
Hi!
I encountered a problem with some CPP code of mine. If the last line of the source contains whitespace, I get the error:
Didn't find a 'MODULE ... PACKAGE ... PREFIX' line
from ExtUtil::ParseXS. It's rex looking for that line starts with /^ to anchor it to the beginning of the line, and my whitespace is messing that up. Somewhat tedious to track down...
In your CPP.pm, if you change the line where you write this:
MODULE = $module PACKAGE = $pkg $prefix
to begin with a newline, this problem goes away.
Hope that helps,
/J