preprocessFile: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Corrected spelling mistake)
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|PREPROCESSFILE]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|PREPROCESSFILE]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|PREPROCESSFILE]]


| ofpr |= Game name


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


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


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


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


'''Type of returned value:'''
| [[String]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>preprocessFile "myFunction.sqf"</pre> |= Example 1
____________________________________________________________________________________________


[[String]]
|  |= See also


'''Compatibility:'''
}}


Added in version '''1.82'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


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


Returns preprocessed content of given file.
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|PREPROCESSFILE]]
Preprocessor is C-like, supports comments using '''//''' or '''/*''' and '''*/''' and macros defined with '''#define'''.
[[Category:Scripting Commands OFP 1.96|PREPROCESSFILE]]
 
[[Category:Scripting Commands ArmA|PREPROCESSFILE]]
 
'''Example:'''
 
'''preprocessFile''' "myFunction.sqf"

Revision as of 00:04, 2 August 2006

Hover & click on the images for description

Description

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

Syntax

Syntax:
preprocessFile filename
Parameters:
filename: String
Return Value:
String

Examples

Example 1:
preprocessFile "myFunction.sqf"

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