Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
l_internal.h File Reference
+ Include dependency graph for l_internal.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define luamethod(class, name)   {#name, class::l_##name}
 
#define luamethod_dep(class, good, bad)
 
#define luamethod_aliased(class, good, bad)
 
#define API_FCT(name)   registerFunction(L, #name, l_##name, top)
 
#define MAP_LOCK_REQUIRED   ((void)0)
 
#define NO_MAP_LOCK_REQUIRED   ((void)0)
 
#define DEBUG_ASSERT_NO_CLIENTAPI
 
#define GET_ENV_PTR_NO_MAP_LOCK
 
#define GET_ENV_PTR
 
#define GET_PLAIN_ENV_PTR_NO_MAP_LOCK
 
#define GET_PLAIN_ENV_PTR
 

Macro Definition Documentation

◆ API_FCT

#define API_FCT (   name)    registerFunction(L, #name, l_##name, top)

◆ DEBUG_ASSERT_NO_CLIENTAPI

#define DEBUG_ASSERT_NO_CLIENTAPI
Value:
FATAL_ERROR_IF(getClient(L) != nullptr, "Tried " \
"to retrieve ServerEnvironment on client")
#define FATAL_ERROR_IF(expr, msg)
Definition: debug.h:51

◆ GET_ENV_PTR

#define GET_ENV_PTR
Value:
#define GET_ENV_PTR_NO_MAP_LOCK
Definition: l_internal.h:59
#define MAP_LOCK_REQUIRED
Definition: l_internal.h:45

◆ GET_ENV_PTR_NO_MAP_LOCK

#define GET_ENV_PTR_NO_MAP_LOCK
Value:
ServerEnvironment *env = (ServerEnvironment *)getEnv(L); \
if (env == NULL) \
return 0
Definition: serverenvironment.h:220
#define DEBUG_ASSERT_NO_CLIENTAPI
Definition: l_internal.h:51

◆ GET_PLAIN_ENV_PTR

#define GET_PLAIN_ENV_PTR
Value:
#define GET_PLAIN_ENV_PTR_NO_MAP_LOCK
Definition: l_internal.h:71

◆ GET_PLAIN_ENV_PTR_NO_MAP_LOCK

#define GET_PLAIN_ENV_PTR_NO_MAP_LOCK
Value:
Environment *env = getEnv(L); \
if (env == NULL) \
return 0
Definition: environment.h:49

◆ luamethod

#define luamethod (   class,
  name 
)    {#name, class::l_##name}

◆ luamethod_aliased

#define luamethod_aliased (   class,
  good,
  bad 
)
Value:
luamethod(class, good), \
luamethod_dep(class, good, bad)
#define luamethod(class, name)
Definition: l_internal.h:31

◆ luamethod_dep

#define luamethod_dep (   class,
  good,
  bad 
)
Value:
{#bad, [](lua_State *L) -> int { \
return l_deprecated_function(L, #good, #bad, &class::l_##good); \
}}

◆ MAP_LOCK_REQUIRED

#define MAP_LOCK_REQUIRED   ((void)0)

◆ NO_MAP_LOCK_REQUIRED

#define NO_MAP_LOCK_REQUIRED   ((void)0)