MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / pushNamedInt

Function pushNamedInt

src/bzflag/HubLua.cpp:92–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90
91
92static void pushNamedInt(lua_State* L, const char* key, int value) {
93 lua_pushstring(L, key);
94 lua_pushinteger(L, value);
95 lua_rawset(L, -3);
96}
97
98
99static void limitMembers(lua_State* L, const char* table,

Callers 1

pushConstantsMethod · 0.85

Calls 3

lua_pushstringFunction · 0.50
lua_pushintegerFunction · 0.50
lua_rawsetFunction · 0.50

Tested by

no test coverage detected