MCPcopy Create free account
hub / github.com/defold/defold / Vector_tostring

Function Vector_tostring

engine/script/src/script_vmath.cpp:251–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249 }
250
251 static int Vector_tostring(lua_State *L)
252 {
253 FloatVector* v = *(FloatVector**)lua_touserdata(L, 1);
254 lua_pushfstring(L, "%s.%s (size: %d)", SCRIPT_LIB_NAME, SCRIPT_TYPE_NAME_VECTOR, v->size);
255 return 1;
256 }
257
258 static int Vector_gc(lua_State *L)
259 {

Callers

nothing calls this directly

Calls 2

lua_touserdataFunction · 0.85
lua_pushfstringFunction · 0.85

Tested by

no test coverage detected