Thread: JassCraft
View Single Post
Old 02-15-2006, 11:09 PM   #17
PitzerMike
Alcopops
 
PitzerMike's Avatar


Tools & Tutorials Moderator
 
Join Date: Jan 2003
Posts: 2,794

Submissions (12)

PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)

Approved Map: Pitzer's Minesweeper

Default

In order to add preprocessor capabilities you could use PPJASS.
It's an existing wrapper over PJASS and has the following keywords:

#include <file>
#define <defname> <value>
#if <defname>
#elseif <defname>
#else
#endif

It's also called via command line and works like the C preprocessor. It runs the preprocessor results through PJASS. The error lines returned by PJASS are translated back to the original line numbers (before includes got resolved) in the file.

I'm sure you can find the thread where it was posted with the search function.
__________________
Zoom (requires log in)
PitzerMike is offline   Reply With Quote