Menu

CPP Filter Update

The filters/cppfilter.c tool now makes some exceptions for certain file types (.xml,.as,.as3) that break the line count (error call-outs will mismatch afterwards) but does allow you to slurp other files into your file unconditionally, also invoking the preprocessor on them as it goes.

The 'include' keyword in AS3 is too picky. The #include keyword in CPP doesn't care about what sort of file extension or how or where it's placed syntactically in the code. It also allows some more extensive template work.

// CPP+AS version
var myXML:XML =
#include "../xmldata.xml"
; /* Works */

// AS version
var myXML:XML =
include "../xmldata.xml"
; /* DOES NOT WORK */

Posted by David Mace 2007-06-17

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.