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

Method getOptimize

src/ast/ast_program.cpp:617–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

615 }
616
617 bool Program::getOptimize() const {
618 if ( policies.no_optimizations ) return false;
619 auto arg = options.find("optimize",Type::tBool);
620 if ( arg ) return arg->bValue;
621 arg = options.find("no_optimization",Type::tBool);
622 if ( arg ) return !arg->bValue;
623 return true;
624 }
625
626 bool Program::getDebugger() const {
627 return policies.debugger || options.getBoolOption("debugger",false);

Callers 2

AllocateStackMethod · 0.80
parseDaScriptFunction · 0.80

Calls 1

findMethod · 0.45

Tested by

no test coverage detected