MCPcopy Create free account
hub / github.com/anjo76/angelscript / GetEngineProperty

Method GetEngineProperty

sdk/angelscript/source/as_scriptengine.cpp:509–638  ·  view source on GitHub ↗

interface

Source from the content-addressed store, hash-verified

507
508// interface
509asPWORD asCScriptEngine::GetEngineProperty(asEEngineProp property) const
510{
511 switch( property )
512 {
513 case asEP_ALLOW_UNSAFE_REFERENCES:
514 return ep.allowUnsafeReferences;
515
516 case asEP_OPTIMIZE_BYTECODE:
517 return ep.optimizeByteCode;
518
519 case asEP_COPY_SCRIPT_SECTIONS:
520 return ep.copyScriptSections;
521
522 case asEP_MAX_STACK_SIZE:
523 return ep.maximumContextStackSize * 4;
524
525 case asEP_INIT_STACK_SIZE:
526 return ep.initContextStackSize * 4;
527
528 case asEP_USE_CHARACTER_LITERALS:
529 return ep.useCharacterLiterals;
530
531 case asEP_ALLOW_MULTILINE_STRINGS:
532 return ep.allowMultilineStrings;
533
534 case asEP_ALLOW_IMPLICIT_HANDLE_TYPES:
535 return ep.allowImplicitHandleTypes;
536
537 case asEP_BUILD_WITHOUT_LINE_CUES:
538 return ep.buildWithoutLineCues;
539
540 case asEP_INIT_GLOBAL_VARS_AFTER_BUILD:
541 return ep.initGlobalVarsAfterBuild;
542
543 case asEP_REQUIRE_ENUM_SCOPE:
544 return ep.requireEnumScope;
545
546 case asEP_SCRIPT_SCANNER:
547 return ep.scanner;
548
549 case asEP_INCLUDE_JIT_INSTRUCTIONS:
550 return ep.includeJitInstructions;
551
552 case asEP_STRING_ENCODING:
553 return ep.stringEncoding;
554
555 case asEP_PROPERTY_ACCESSOR_MODE:
556 return ep.propertyAccessorMode;
557
558 case asEP_EXPAND_DEF_ARRAY_TO_TMPL:
559 return ep.expandDefaultArrayToTemplate;
560
561 case asEP_AUTO_GARBAGE_COLLECT:
562 return ep.autoGarbageCollect;
563
564 case asEP_DISALLOW_GLOBAL_VARS:
565 return ep.disallowGlobalVars;
566

Callers 7

WriteConfigToStreamFunction · 0.80
SetMyAnyFunction · 0.80
TestFunction · 0.80
TestFunction · 0.80
SetCBFunction · 0.80

Calls

no outgoing calls

Tested by 4

SetMyAnyFunction · 0.64
TestFunction · 0.64
TestFunction · 0.64
SetCBFunction · 0.64