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

Method GetConstantData

sdk/angelscript/source/as_compiler.cpp:17858–17872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17856}
17857
17858asQWORD asCExprValue::GetConstantData()
17859{
17860 asQWORD qw = 0;
17861 // This code is necessary to guarantee that the code
17862 // works on both big endian and little endian CPUs.
17863 if (dataType.GetSizeInMemoryBytes() == 1)
17864 qw = byteValue;
17865 if (dataType.GetSizeInMemoryBytes() == 2)
17866 qw = wordValue;
17867 if (dataType.GetSizeInMemoryBytes() == 4)
17868 qw = dwordValue;
17869 else
17870 qw = qwordValue;
17871 return qw;
17872}
17873
17874void asCExprValue::SetUndefinedFuncHandle(asCScriptEngine *engine)
17875{

Callers 3

CompileConditionMethod · 0.80
ProcessDeferredParamsMethod · 0.80

Calls 1

GetSizeInMemoryBytesMethod · 0.80

Tested by

no test coverage detected