BIS fnc recompile: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Created page with "<syntaxhighlight lang=javascript>→‎Author: Karel Moricky Description: Recompiles all functions: private ["_functionsInit"]; _functionsInit = gettext (configfile >> "CfgFun...")
Line 1: Line 1:
 
<syntaxhighlight lang=javascript>/*
{{Function|= Comments
Author: Karel Moricky
____________________________________________________________________________________________
 
| arma2 |= Game name
 
|1.00|= Game version
____________________________________________________________________________________________
 
| <pre>/*


Description:
Description:
Recompiles all functions
Recompiles all functions
*/
*/
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
private ["_functionsInit"];
____________________________________________________________________________________________
_functionsInit = gettext (configfile >> "CfgFunctions" >> "init");
 
if (_functionsInit != "") then {
| <!-- [] call [[BIS_fnc_recompile]]; --> |= Syntax
//if (cheatsEnabled) then {call compile "diag_mergeConfigFile ['o:\arma3\A3\functions_f\config.cpp'];"};
 
_this call compile preprocessfilelinenumbers _functionsInit;
|p1= |= Parameter 1
true
 
} else {
| |= Return value
"Functions Init not found!" call (uinamespace getvariable "bis_fnc_error");
____________________________________________________________________________________________
false
 
};</syntaxhighlight>
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also
 
}}
 
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
 
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Debug|{{uc:recompile}}]]
[[Category:Functions|{{uc:recompile}}]]
[[Category:{{Name|arma2}}: Functions|{{uc:recompile}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:recompile}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:recompile}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:recompile}}]]

Revision as of 00:43, 7 November 2013

/*
	Author: Karel Moricky

	Description:
	Recompiles all functions
*/
private ["_functionsInit"];
_functionsInit = gettext (configfile >> "CfgFunctions" >> "init");
if (_functionsInit != "") then {
	//if (cheatsEnabled) then {call compile "diag_mergeConfigFile ['o:\arma3\A3\functions_f\config.cpp'];"};
	_this call compile preprocessfilelinenumbers _functionsInit;
	true
} else {
	"Functions Init not found!" call (uinamespace getvariable "bis_fnc_error");
	false
};