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

Method SetReturnByte

sdk/angelscript/source/as_generic.cpp:332–345  ·  view source on GitHub ↗

interface

Source from the content-addressed store, hash-verified

330
331// interface
332int asCGeneric::SetReturnByte(asBYTE val)
333{
334 // Verify the type of the return value
335 if( (sysFunction->returnType.IsObject() || sysFunction->returnType.IsFuncdef()) || sysFunction->returnType.IsReference() )
336 return asINVALID_TYPE;
337
338 if( sysFunction->returnType.GetSizeInMemoryBytes() != 1 )
339 return asINVALID_TYPE;
340
341 // Store the value
342 *(asBYTE*)&returnVal = val;
343
344 return 0;
345}
346
347// interface
348int asCGeneric::SetReturnWord(asWORD val)

Callers 8

ScriptFile_IsEOF_GenericFunction · 0.80
C_f1Function · 0.80

Calls 4

IsObjectMethod · 0.80
IsFuncdefMethod · 0.80
GetSizeInMemoryBytesMethod · 0.80
IsReferenceMethod · 0.45

Tested by 2

C_f1Function · 0.64