MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / das_program_simulate

Function das_program_simulate

src/misc/daScriptC.cpp:259–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259int das_program_simulate ( das_program * program, das_context * ctx, das_text_writer * tout ) {
260 auto prog = (Program *) program;
261 bool ok;
262 {
263 gc_guard simulate_gc_scope;
264 ok = prog->simulate(*((Context *)ctx), *((TextWriter *)tout));
265 for ( auto mod : prog->library.getModules() ) {
266 if ( !mod->builtIn ) {
267 mod->gc_collect(&simulate_gc_scope.guard_root);
268 }
269 }
270 }
271 return ok ? 1 : 0;
272}
273
274das_error * das_program_get_error ( das_program * program, int index ) {
275 auto prog = (Program *) program;

Callers 15

compile_inlineFunction · 0.85
compile_inlineFunction · 0.85
compile_inlineFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
part2_solutionFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
run_inline_scriptFunction · 0.85
mainFunction · 0.85
compile_and_simulateFunction · 0.85

Calls 2

simulateMethod · 0.45
gc_collectMethod · 0.45

Tested by 4

compile_inlineFunction · 0.68
compile_inlineFunction · 0.68
compile_inlineFunction · 0.68
mainFunction · 0.68