MCPcopy Create free account
hub / github.com/TASEmulators/fceux / luaL_checkinteger

Function luaL_checkinteger

src/lua/src/lauxlib.c:189–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187
188
189LUALIB_API lua_Integer luaL_checkinteger (lua_State *L, int narg) {
190 lua_Integer d = lua_tointeger(L, narg);
191 if (d == 0 && !lua_isnumber(L, narg)) /* avoid extra test when d is not 0 */
192 tag_error(L, narg, LUA_TNUMBER);
193 return d;
194}
195
196
197LUALIB_API lua_Integer luaL_optinteger (lua_State *L, int narg,

Callers 15

rom_readbyteFunction · 0.85
rom_readbytesignedFunction · 0.85
rom_readbyterangeFunction · 0.85
rom_writebyteFunction · 0.85
memory_readbyteFunction · 0.85
memory_readbytesignedFunction · 0.85
GetWordFunction · 0.85
memory_writebyteFunction · 0.85
legacymemory_writebyteFunction · 0.85
memory_readbyterangeFunction · 0.85
ppu_readbyteFunction · 0.85
ppu_readbyterangeFunction · 0.85

Calls 3

lua_tointegerFunction · 0.85
lua_isnumberFunction · 0.85
tag_errorFunction · 0.85

Tested by

no test coverage detected