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

Method SetReturnFloat

sdk/angelscript/source/as_generic.cpp:396–409  ·  view source on GitHub ↗

interface

Source from the content-addressed store, hash-verified

394
395// interface
396int asCGeneric::SetReturnFloat(float val)
397{
398 // Verify the type of the return value
399 if( (sysFunction->returnType.IsObject() || sysFunction->returnType.IsFuncdef()) || sysFunction->returnType.IsReference() )
400 return asINVALID_TYPE;
401
402 if( sysFunction->returnType.GetSizeOnStackDWords() != 1 )
403 return asINVALID_TYPE;
404
405 // Store the value
406 *(float*)&returnVal = val;
407
408 return 0;
409}
410
411// interface
412int asCGeneric::SetReturnDouble(double val)

Callers 4

cfunction_f_genFunction · 0.80
funcFunction · 0.80
sum_genericFunction · 0.80
Vector3Length_GenericFunction · 0.80

Calls 4

IsObjectMethod · 0.80
IsFuncdefMethod · 0.80
GetSizeOnStackDWordsMethod · 0.80
IsReferenceMethod · 0.45

Tested by 4

cfunction_f_genFunction · 0.64
funcFunction · 0.64
sum_genericFunction · 0.64
Vector3Length_GenericFunction · 0.64