UnrealEngine 1 PreProcessor
Posted: Sun Aug 24, 2008 3:25 pm
This preprocessor is inspired by the one existing in Unreal Engine 3.
Install:
Copy files in the archive to your /system folder.
Download
http://turniej.unreal.pl/files/uenginepp.zip (~570 kb)
ReadMe
ReadMe at [url=http://wiki.beyondunreal.com/UE1:UE1PreProcessor]WIKI[/url]
It's copy of UT3 preprocessor. Currently supported directives are:
`process - should be in the first line of .uc file. Tells preprocessor to parse file
`include file - embade file in the currently opened .uc
`inc_process file - embade file in the currently opened .uc and parses it
`define variable - defines empty variable (used in `ifdef and `ifndef directives)
`define variable=value - defines variable with specified value
`write variable - writes defined variable
`ifdef variable - evaluates to true if variable is defined
`ifndef variable - evaluates to true if variable is not defined
`else - part of conditional statement
`endif - ends conditional statement
`check definition==value - evaluates to true if defined variable (definition) equals value. Used in strings, floats, integers.
`check definitionvalue - evaluates to true if defined variable (definition) does not match value. Used in strings, floats, integers.
`check definition>value - evaluates to true if defined variable (definition) is greater then value. Used in floats, integers.
`check definitionint2
//var() int test1;
//`else
var() int test2;
var() class NewActor; //`write nc
//`endif[/code]
Of course input file can look different, but most important thing is to write `process in first line.
Install:
Copy files in the archive to your /system folder.
Download
http://turniej.unreal.pl/files/uenginepp.zip (~570 kb)
ReadMe
ReadMe at [url=http://wiki.beyondunreal.com/UE1:UE1PreProcessor]WIKI[/url]
It's copy of UT3 preprocessor. Currently supported directives are:
`process - should be in the first line of .uc file. Tells preprocessor to parse file
`include file - embade file in the currently opened .uc
`inc_process file - embade file in the currently opened .uc and parses it
`define variable - defines empty variable (used in `ifdef and `ifndef directives)
`define variable=value - defines variable with specified value
`write variable - writes defined variable
`ifdef variable - evaluates to true if variable is defined
`ifndef variable - evaluates to true if variable is not defined
`else - part of conditional statement
`endif - ends conditional statement
`check definition==value - evaluates to true if defined variable (definition) equals value. Used in strings, floats, integers.
`check definitionvalue - evaluates to true if defined variable (definition) does not match value. Used in strings, floats, integers.
`check definition>value - evaluates to true if defined variable (definition) is greater then value. Used in floats, integers.
`check definitionint2
//var() int test1;
//`else
var() int test2;
var() class NewActor; //`write nc
//`endif[/code]
Of course input file can look different, but most important thing is to write `process in first line.