preprocessFileLineNumbers filename

Operand types

filename: String

Type of returned value

Description

Returns preprocessed content of given file.
Preprocessor is C-like, supports comments using // or /* and */ and macros defined with #define.

Usually used in conjunction with compile, in order to create a function from an sqf script file.

This command does everything that preprocessFile does, but in addition, the user will be given file and line-number information in any error reports when running the function created.

Used In

ArmA

Example

// Pre-compile a function, with file name and line-number information stored within it.
myFunction = compile preprocessFileLineNumbers "myFunction.sqf";

// Call the function later.
_result = [_param1, _param2, _param3] call myFunction;
Search OFPEC COMREF