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

Method GetReturnFloat

sdk/angelscript/source/as_context.cpp:913–922  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

911}
912
913float asCContext::GetReturnFloat()
914{
915 if( m_status != asEXECUTION_FINISHED ) return 0;
916
917 asCDataType *dt = &m_initialFunction->returnType;
918
919 if( dt->IsObject() || dt->IsFuncdef() || dt->IsReference() ) return 0;
920
921 return *(float*)&m_regs.valueRegister;
922}
923
924double asCContext::GetReturnDouble()
925{

Callers 2

RunApplicationFunction · 0.80
ExecuteScriptFunction · 0.80

Calls 3

IsObjectMethod · 0.80
IsFuncdefMethod · 0.80
IsReferenceMethod · 0.45

Tested by 1

ExecuteScriptFunction · 0.64