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

Method SetReturnDouble

sdk/angelscript/source/as_generic.cpp:412–425  ·  view source on GitHub ↗

interface

Source from the content-addressed store, hash-verified

410
411// interface
412int asCGeneric::SetReturnDouble(double val)
413{
414 // Verify the type of the return value
415 if( (sysFunction->returnType.IsObject() || sysFunction->returnType.IsFuncdef()) || sysFunction->returnType.IsReference() )
416 return asINVALID_TYPE;
417
418 if( sysFunction->returnType.GetSizeOnStackDWords() != 2 )
419 return asINVALID_TYPE;
420
421 // Store the value
422 *(double*)&returnVal = val;
423
424 return 0;
425}
426
427// interface
428int asCGeneric::SetReturnAddress(void *val)

Callers 4

parseFloat_GenericFunction · 0.80
cfunction_d_genFunction · 0.80
StringToDoubleFunction · 0.80
GenFunc1Function · 0.80

Calls 4

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

Tested by 3

cfunction_d_genFunction · 0.64
StringToDoubleFunction · 0.64
GenFunc1Function · 0.64