MCPcopy Create free account
hub / github.com/WheretIB/nullc / nullcCompile

Function nullcCompile

NULLC/nullc.cpp:256–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256nullres nullcCompile(const char* code)
257{
258 using namespace NULLC;
259 NULLC_CHECK_INITIALIZED(false);
260
261 nullcLastError = "";
262 nullres good = compiler->Compile(code);
263 if(good == 0)
264 nullcLastError = compiler->GetError();
265 return good;
266}
267
268unsigned int nullcGetBytecode(char **bytecode)
269{

Callers 15

CompileFileFunction · 0.85
RunTestsFunction · 0.85
WndProcFunction · 0.85
nullcLoadModuleBySourceFunction · 0.85
nullcBuildFunction · 0.85
OverrideFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
RunCodeMethod · 0.85
TEST_FOR_FAILFunction · 0.85
TEST_FOR_FAIL_GENERICFunction · 0.85
TEST_FOR_FAIL_FULLFunction · 0.85

Calls 2

CompileMethod · 0.45
GetErrorMethod · 0.45

Tested by 8

CompileFileFunction · 0.68
RunTestsFunction · 0.68
RunCodeMethod · 0.68
TEST_FOR_FAILFunction · 0.68
TEST_FOR_FAIL_GENERICFunction · 0.68
TEST_FOR_FAIL_FULLFunction · 0.68
RunInterfaceTestsFunction · 0.68
SpeedTestTextFunction · 0.68