MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaB_assert

Function luaB_assert

Source/Misc/lua/src/lua.c:11198–11203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11196
11197
11198static int luaB_assert (lua_State *L) {
11199luaL_checkany(L, 1);
11200if (!lua_toboolean(L, 1))
11201return luaL_error(L, "%s", luaL_optstring(L, 2, "assertion failed!"));
11202return lua_gettop(L);
11203}
11204
11205
11206static 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