MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / setboolfield

Function setboolfield

3rd/lua-5.4.3/src/loslib.c:219–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217
218
219static void setboolfield (lua_State *L, const char *key, int value) {
220 if (value < 0) /* undefined? */
221 return; /* does not set field */
222 lua_pushboolean(L, value);
223 lua_setfield(L, -2, key);
224}
225
226
227/*

Callers 1

setallfieldsFunction · 0.85

Calls 2

lua_pushbooleanFunction · 0.85
lua_setfieldFunction · 0.85

Tested by

no test coverage detected