HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Another PreProcessor

02-27-2004, 01:16 PM#1
jmoritz
I created this for PR, because it was getting harder and harder to manage the code. It has the following features:

#include "otherfile.ext"
#define MYVAR 344.23
#undef MYVAR
#ifdef MYVAR
#ifndef MYVAR
#else
#endif

and you can put 1 JASS line on multiple lines using \, like this:
Code:
if myvar + "A very long string" + \
      morevariableshere == evenmore + stuff then

Its coded in JScript, so it should work on every Win2000 or WinXP machine. You can put it in your favorite texteditor, first argument is file to compile. Or from command prompt.

Probably noone is gonna use it besides me, but I'm posting it here anyway. You never know...


*UPDATED* Now runs generated JASS code through pjass and returns adjusted error messages. Recommended instead of pjass.
02-28-2004, 12:50 AM#2
Vidstige
We have a concurrent. Great! :D
02-28-2004, 08:12 PM#3
Starcraftfreak
It helps greatly with the module based development for PR (that was the target of it anyway :D ). Thumbs up!
02-28-2004, 08:27 PM#4
dataangel
I still stray away from writing all my JASS outside the WE because there's no easy way to setup cameras/regions.
02-28-2004, 10:36 PM#5
Vexorian
The most I do is copying my trigger to notepad then paste it again to WE, and that is only for extreme situations, anyways good work
02-29-2004, 03:35 PM#6
jmoritz
Notepad power!
03-12-2004, 11:33 PM#7
jmoritz
Named the tool ppjass. Updated to run generated code through pjass and adjust error messages. Instructions inside.