MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / luaB_assert

Function luaB_assert

deps/lua/src/lbaselib.c:334–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332
333
334static int luaB_assert (lua_State *L) {
335 luaL_checkany(L, 1);
336 if (!lua_toboolean(L, 1))
337 return luaL_error(L, "%s", luaL_optstring(L, 2, "assertion failed!"));
338 return lua_gettop(L);
339}
340
341
342static int luaB_unpack (lua_State *L) {

Callers

nothing calls this directly

Calls 4

luaL_checkanyFunction · 0.85
lua_tobooleanFunction · 0.85
luaL_errorFunction · 0.85
lua_gettopFunction · 0.85

Tested by

no test coverage detected