MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaB_assert

Function luaB_assert

app/redis-6.2.6/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.70
lua_tobooleanFunction · 0.70
luaL_errorFunction · 0.70
lua_gettopFunction · 0.70

Tested by

no test coverage detected