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

Function lua_pushnumber

engine/lua/src/lua/lapi.c:429–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427
428
429LUA_API void lua_pushnumber (lua_State *L, lua_Number n) {
430 lua_lock(L);
431 setnvalue(L->top, n);
432 api_incr_top(L);
433 lua_unlock(L);
434}
435
436
437LUA_API void lua_pushinteger (lua_State *L, lua_Integer n) {

Callers 15

Crash_LoadPreviousFunction · 0.85
Crash_GetModulesFunction · 0.85
Crash_GetSignumFunction · 0.85
Crash_GetBacktraceFunction · 0.85
Script_GetScaleUniformFunction · 0.85
PropertiesToLuaTableFunction · 0.85
RunScriptFunction · 0.85
CompScriptOnInputFunction · 0.85
LuaPushVarFunction · 0.85

Calls

no outgoing calls

Tested by 15

TEST_FFunction · 0.68
TEST_FFunction · 0.68
TestSetInstanceContextFunction · 0.68
TestNumberMethod · 0.68
TEST_FFunction · 0.68
ReadSerializedTableFunction · 0.68
TEST_FFunction · 0.68
ProduceIndexOutOfBoundsFunction · 0.68
PCallCheckTableFunction · 0.68
TEST_FFunction · 0.68
TestGetContextTableRefFunction · 0.68