Loading...
Searching...
No Matches
Go to the documentation of this file.
16#define luamethod(class, name) {#name, class::l_##name}
18#define luamethod_dep(class, good, bad) \
19 {#bad, [](lua_State *L) -> int { \
20 return l_deprecated_function(L, #good, #bad, &class::l_##good); \
23#define luamethod_aliased(class, good, bad) \
24 luamethod(class, good), \
25 luamethod_dep(class, good, bad)
27#define API_FCT(name) registerFunction(L, #name, l_##name, top)
30#define MAP_LOCK_REQUIRED ((void)0)
31#define NO_MAP_LOCK_REQUIRED ((void)0)
35#if CHECK_CLIENT_BUILD() && !defined(NDEBUG)
36#define DEBUG_ASSERT_NO_CLIENTAPI \
37 FATAL_ERROR_IF(getClient(L) != nullptr, "Tried " \
38 "to retrieve ServerEnvironment on client")
40#define DEBUG_ASSERT_NO_CLIENTAPI ((void)0)
44#define GET_ENV_PTR_NO_MAP_LOCK \
45 DEBUG_ASSERT_NO_CLIENTAPI; \
46 ServerEnvironment *env = (ServerEnvironment *)getEnv(L); \
53 GET_ENV_PTR_NO_MAP_LOCK
56#define GET_PLAIN_ENV_PTR_NO_MAP_LOCK \
57 Environment *env = getEnv(L); \
62#define GET_PLAIN_ENV_PTR \
64 GET_PLAIN_ENV_PTR_NO_MAP_LOCK