MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / CompileFunction

Method CompileFunction

neo/game/script/Script_Program.cpp:1873–1887  ·  view source on GitHub ↗

================ idProgram::CompileFunction ================ */

Source from the content-addressed store, hash-verified

1871================
1872*/
1873const function_t *idProgram::CompileFunction( const char *functionName, const char *text ) {
1874 bool result;
1875
1876 result = CompileText( functionName, text, false );
1877
1878 if ( g_disasm.GetBool() ) {
1879 Disassemble();
1880 }
1881
1882 if ( !result ) {
1883 gameLocal.Error( "Compile failed." );
1884 }
1885
1886 return FindFunction( functionName );
1887}
1888
1889/*
1890================

Callers

nothing calls this directly

Calls 2

GetBoolMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected