Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:

Returns the preprocessed content of the given file.

The processed file is stripped of any comments, and any preprocessor commands executed when the string is returned. In addition to the processed file content, an extra line is inserted before the content, which contains the prefix #line 1, followed by the path of the script that is being called.

Example:

A script with the following content:

_a = 1; // one
_b = 2; // two
#define ten 10
_c = ten; // ten

Would be returned as:

#line 1 "c:\users\myUserName\documents\vbs3\scripts\myScript.sqf"
_a = 1; 
_b = 2; 

_c = 10; 

Syntax

Syntax:preprocessFileLineNumbers fileName
Parameters:
  • fileName: String - Either no, a relative, or an absolute path (see Location for details).
Return Value:String

Examples

Examples:
_content = preprocessFile "myFunction.sqf"

Additional Information

See also: preprocessFile, loadFile, Function, SQF Syntax, call, spawn, execVM
Multiplayer:
Problems:

Notes