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

Function StringToDouble

sdk/tests/test_feature/source/test_arrayhandle.cpp:43–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41"} \n";
42
43void StringToDouble(asIScriptGeneric *gen)
44{
45 std::string s = ((CScriptString*)gen->GetArgAddress(0))->buffer;
46 gen->SetReturnDouble(atof(s.c_str()));
47}
48
49bool Test()
50{

Callers

nothing calls this directly

Calls 2

GetArgAddressMethod · 0.80
SetReturnDoubleMethod · 0.80

Tested by

no test coverage detected