mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
fa20edc44d
- Remove most __ASSEMBLER__ __LINKER__ ifdefs - Rename libc/intrin/bits.h to libc/serialize.h - Block pthread cancelation in fchmodat() polyfill - Remove `clang-format off` statements in third_party
21 lines
705 B
C
21 lines
705 B
C
#ifndef COSMOPOLITAN_TOOL_NET_LUACHECK_H_
|
|
#define COSMOPOLITAN_TOOL_NET_LUACHECK_H_
|
|
#include "libc/log/log.h"
|
|
#include "libc/mem/mem.h"
|
|
#include "third_party/lua/cosmo.h"
|
|
#include "third_party/lua/lua.h"
|
|
COSMOPOLITAN_C_START_
|
|
|
|
#define AssertLuaStackIsAt(L, level) \
|
|
do { \
|
|
if (lua_gettop(L) > level) { \
|
|
char *s = LuaFormatStack(L); \
|
|
WARNF("lua stack should be at %d;" \
|
|
" extra values ignored:\n%s", \
|
|
level, s); \
|
|
free(s); \
|
|
} \
|
|
} while (0)
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* COSMOPOLITAN_TOOL_NET_LUACHECK_H_ */
|