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

Function luaB_assert

freebsd/contrib/openzfs/module/lua/lbaselib.c:227–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225
226
227static int luaB_assert (lua_State *L) {
228 if (!lua_toboolean(L, 1))
229 return luaL_error(L, "%s", luaL_optstring(L, 2, "assertion failed!"));
230 return lua_gettop(L);
231}
232
233
234static 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