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

Method SetEngineProperty

sdk/angelscript/source/as_scriptengine.cpp:279–506  ·  view source on GitHub ↗

interface

Source from the content-addressed store, hash-verified

277
278// interface
279int asCScriptEngine::SetEngineProperty(asEEngineProp property, asPWORD value)
280{
281 switch( property )
282 {
283 case asEP_ALLOW_UNSAFE_REFERENCES:
284 ep.allowUnsafeReferences = value ? true : false;
285 break;
286
287 case asEP_OPTIMIZE_BYTECODE:
288 ep.optimizeByteCode = value ? true : false;
289 break;
290
291 case asEP_COPY_SCRIPT_SECTIONS:
292 ep.copyScriptSections = value ? true : false;
293 break;
294
295 case asEP_MAX_STACK_SIZE:
296 if( value == 0 )
297 {
298 // Restore default: no limit and initially size 4KB
299 ep.maximumContextStackSize = 0;
300 }
301 else
302 {
303 // The size is given in bytes, but we only store dwords
304 ep.maximumContextStackSize = (asUINT)value/4;
305 }
306 break;
307
308 case asEP_INIT_STACK_SIZE:
309 if (value < 4)
310 {
311 // At least one dword
312 ep.initContextStackSize = 1;
313 }
314 else
315 {
316 // The size is given in bytes, but we only store dwords
317 ep.initContextStackSize = (asUINT)value / 4;
318 }
319 break;
320
321 case asEP_USE_CHARACTER_LITERALS:
322 ep.useCharacterLiterals = value ? true : false;
323 break;
324
325 case asEP_ALLOW_MULTILINE_STRINGS:
326 ep.allowMultilineStrings = value ? true : false;
327 break;
328
329 case asEP_ALLOW_IMPLICIT_HANDLE_TYPES:
330 ep.allowImplicitHandleTypes = value ? true : false;
331 break;
332
333 case asEP_BUILD_WITHOUT_LINE_CUES:
334 ep.buildWithoutLineCues = value ? true : false;
335 break;
336

Callers 15

ConfigureEngineFunction · 0.80
CompileScriptFunction · 0.80
WriteConfigToStreamFunction · 0.80
ConfigEngineFromStreamFunction · 0.80
ProcessScriptSectionMethod · 0.80
TestFunction · 0.80
test_compiler.cppFile · 0.80
Test5Function · 0.80
TestConditionFunction · 0.80
test_condition.cppFile · 0.80
TestFunction · 0.80

Calls 1

InitJumpTableMethod · 0.80

Tested by 15

TestFunction · 0.64
Test5Function · 0.64
TestConditionFunction · 0.64
TestFunction · 0.64
TestGlobalVarFunction · 0.64
TestStackFunction · 0.64
TestFunction · 0.64
TestFunction · 0.64
TestEnumFunction · 0.64
TestFunction · 0.64
TestFunction · 0.64
TestFunction · 0.64