MCPcopy Create free account
hub / github.com/crownengine/crown / lj_assert_fail

Function lj_assert_fail

3rdparty/luajit/src/lj_assert.c:15–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#include "lj_obj.h"
14
15void lj_assert_fail(global_State *g, const char *file, int line,
16 const char *func, const char *fmt, ...)
17{
18 va_list argp;
19 va_start(argp, fmt);
20 fprintf(stderr, "LuaJIT ASSERT %s:%d: %s: ", file, line, func);
21 vfprintf(stderr, fmt, argp);
22 fputc('\n', stderr);
23 va_end(argp);
24 UNUSED(g); /* May be NULL. TODO: optionally dump state. */
25 abort();
26}
27
28#endif

Callers

nothing calls this directly

Calls 3

fprintfFunction · 0.85
vfprintfFunction · 0.85
abortFunction · 0.50

Tested by

no test coverage detected