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

Function ScriptFile_WriteFloat_Generic

sdk/add_on/scriptfile/scriptfile.cpp:128–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void ScriptFile_WriteFloat_Generic(asIScriptGeneric *gen)
129{
130 CScriptFile *file = (CScriptFile*)gen->GetObject();
131 float val = *(float*)gen->GetAddressOfArg(0);
132 *(int*)gen->GetAddressOfReturnLocation() = file->WriteFloat(val);
133}
134
135void ScriptFile_WriteDouble_Generic(asIScriptGeneric *gen)
136{

Callers

nothing calls this directly

Calls 4

GetObjectMethod · 0.80
WriteFloatMethod · 0.80
GetAddressOfArgMethod · 0.45

Tested by

no test coverage detected