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

Function ScriptFile_WriteDouble_Generic

sdk/add_on/scriptfile/scriptfile.cpp:135–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135void ScriptFile_WriteDouble_Generic(asIScriptGeneric *gen)
136{
137 CScriptFile *file = (CScriptFile*)gen->GetObject();
138 double val = *(double*)gen->GetAddressOfArg(0);
139 *(int*)gen->GetAddressOfReturnLocation() = file->WriteDouble(val);
140}
141
142void ScriptFile_IsEOF_Generic(asIScriptGeneric *gen)
143{

Callers

nothing calls this directly

Calls 4

GetObjectMethod · 0.80
WriteDoubleMethod · 0.80
GetAddressOfArgMethod · 0.45

Tested by

no test coverage detected