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

Function bit_bshift_emulua

src/lua-engine.cpp:5891–5901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5889// LuaBitOp ends here
5890
5891static int bit_bshift_emulua(lua_State *L)
5892{
5893 int shift = luaL_checkinteger(L,2);
5894 if (shift < 0) {
5895 lua_pushinteger(L, -shift);
5896 lua_replace(L, 2);
5897 return bit_lshift(L);
5898 }
5899 else
5900 return bit_rshift(L);
5901}
5902
5903static int bitbit(lua_State *L)
5904{

Callers

nothing calls this directly

Calls 3

luaL_checkintegerFunction · 0.85
lua_pushintegerFunction · 0.85
lua_replaceFunction · 0.85

Tested by

no test coverage detected