MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaB_assert

Function luaB_assert

third-party/lua-5.2.4/src/lbaselib.c:346–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344
345
346static int luaB_assert (lua_State *L) {
347 if (!lua_toboolean(L, 1))
348 return luaL_error(L, "%s", luaL_optstring(L, 2, "assertion failed!"));
349 return lua_gettop(L);
350}
351
352
353static int luaB_select (lua_State *L) {

Callers

nothing calls this directly

Calls 3

lua_tobooleanFunction · 0.70
luaL_errorFunction · 0.70
lua_gettopFunction · 0.70

Tested by

no test coverage detected