2 ** Internal assertions.
3 ** Copyright (C) 2005-2023 Mike Pall. See Copyright Notice in luajit.h
9 #if defined(LUA_USE_ASSERT) || defined(LUA_USE_APICHECK)
15 void lj_assert_fail(global_State
*g
, const char *file
, int line
,
16 const char *func
, const char *fmt
, ...)
20 fprintf(stderr
, "LuaJIT ASSERT %s:%d: %s: ", file
, line
, func
);
21 vfprintf(stderr
, fmt
, argp
);
24 UNUSED(g
); /* May be NULL. TODO: optionally dump state. */