MCPcopy Create free account
hub / github.com/Segs/Segs / lua_seti

Function lua_seti

3rd_party/lua_sol2/include/sol.hpp:3068–3074  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3066}
3067
3068COMPAT53_API void lua_seti(lua_State *L, int index, lua_Integer i) {
3069 luaL_checkstack(L, 1, "not enough stack slots available");
3070 index = lua_absindex(L, index);
3071 lua_pushinteger(L, i);
3072 lua_insert(L, -2);
3073 lua_settable(L, index);
3074}
3075
3076#if !defined(lua_str2number)
3077# define lua_str2number(s, p) strtod((s), (p))

Callers 2

pushMethod · 0.85
setMethod · 0.85

Calls 2

luaL_checkstackFunction · 0.85
lua_absindexFunction · 0.85

Tested by

no test coverage detected