preprocessFileLineNumbers: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (reset ver)
mNo edit summary
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''preprocessFileLineNumbers''' filename |= Syntax
| [[String]] <nowiki>=</nowiki> '''preprocessFileLineNumbers''' "filename" |= Syntax


|p1= filename: [[String]] |= Parameter 1
|p1= filename: [[String]] |= Parameter 1
Line 17: Line 17:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <br><code>'''preprocessFileLineNumbers''' "myFunction.sqf"</code>  
|x1= <br><code>_string <nowiki>=</nowiki> '''preprocessFileLineNumbers''' "myFunction.sqf"</code>  


Result is "[[if]] a>b [[then]] {a} [[else]] {b}" |= Example 1
Result is "[[if]] a>b [[then]] {a} [[else]] {b}" |= Example 1

Revision as of 12:42, 29 August 2007

-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:
See also needed

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

Bottom Section