MCPcopy Create free account
hub / github.com/DFHack/dfhack / Push

Function Push

library/include/LuaTools.h:317–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315 template<typename T> concept lua_integral = (std::is_integral_v<T> || std::is_enum_v<T>);
316
317 inline void Push(lua_State *state, lua_integral auto value) {
318 lua_pushinteger(state, value);
319 }
320 inline void Push(lua_State* state, std::floating_point auto value) {
321 lua_pushnumber(state, lua_Number(value));
322 }

Callers 15

is_builtinMethod · 0.85
help_helperMethod · 0.85
tags_helperFunction · 0.85
ls_helperFunction · 0.85
onStateChangeMethod · 0.85
dfhack_matinfo_findFunction · 0.85
dfhack_matinfo_decodeFunction · 0.85
adjust_penFunction · 0.85
dfhack_penarray_get_tileFunction · 0.85
gui_getMousePosFunction · 0.85

Calls 10

lua_pushintegerFunction · 0.85
lua_pushnumberFunction · 0.85
lua_pushbooleanFunction · 0.85
lua_pushlstringFunction · 0.85
PushDFObjectFunction · 0.85
lua_createtableFunction · 0.85
lua_settableFunction · 0.85
PushVectorFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected