preprocessFileLineNumbers: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|PREPROCESSFILELINENUMBERS]]
{{Command|= Comments
[[Category:Scripting Commands OFP Elite |PREPROCESSFILELINENUMBERS]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|PREPROCESSFILELINENUMBERS]]


| arma |= Game name


<h2 style="color:#000066">''' preprocessFileLineNumbers ''filename'''''</h2>
|2.58|= Game version
____________________________________________________________________________________________


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


'''Operand types:'''
| '''preprocessFileLineNumbers''' filename |= Syntax


'''filename:''' [[String]]
|p1= filename: [[String]] |= Parameter 1


'''Type of returned value:'''
| [[String]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>preprocessFileLineNumbers "myFunction.sqf" .... result is "if a>b then {a} else {b}"</pre> |= Example 1
____________________________________________________________________________________________


[[String]]
|  |= See also


'''Compatibility:'''
}}


Version 2.58 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Returns the preprocessed content of the given file.
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|PREPROCESSFILELINENUMBERS]]
The preprocessor is C-like, it supports comments using // or /* and */ and macros defined with #define.
[[Category:Scripting Commands OFP Elite |PREPROCESSFILELINENUMBERS]]
 
[[Category:Scripting Commands ArmA|PREPROCESSFILELINENUMBERS]]
 
'''Example:'''
 
'''preprocessFileLineNumbers''' "myFunction.sqf"  .... result is "if a>b then {a} else {b}"

Revision as of 00:04, 2 August 2006

-wrong parameter ("Arma") defined!-2.58
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:
preprocessFileLineNumbers filename
Parameters:
filename: String
Return Value:
String

Examples

Example 1:
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