preprocessFileLineNumbers: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
Line 29: Line 29:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on December 17, 2013
<dt class="note">'''[[User:Killzone_Kid|Killzone_Kid]]'''
<dd class="note">The main difference between [[preprocessFile]] and [[preprocessFileLineNumbers]] is that the latter adds #line directive to the target file, which allows to log in the __LINE__ error happened at and the __FILE__ error happened in.
[[Image:PreprocessFile.jpg]]


<!-- Note Section END -->
<!-- Note Section END -->

Revision as of 13:44, 17 December 2013

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Returns the preprocessed content of the given file. The preprocessor is C-like, it supports comments using // or /* and */ and macros defined with #define.
Groups:
Uncategorised

Syntax

Syntax:
String = preprocessFileLineNumbers fileName
Parameters:
fileName: String
Return Value:
String

Examples

Example 1:

_string = preprocessFileLineNumbers "myFunction.sqf" Result is "if a>b then {a} else {b}"

Additional Information

See also:
preprocessFileloadFileFunctionSQF syntaxcallspawnexecVMPreProcessor Commands

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Posted on December 17, 2013
Killzone_Kid
The main difference between preprocessFile and preprocessFileLineNumbers is that the latter adds #line directive to the target file, which allows to log in the __LINE__ error happened at and the __FILE__ error happened in. PreprocessFile.jpg

Bottom Section