Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
l_settings.cpp File Reference
#include "lua_api/l_settings.h"
#include "lua_api/l_internal.h"
#include "cpp_api/s_security.h"
#include "threading/mutex_auto_lock.h"
#include "util/string.h"
#include "settings.h"
#include "noise.h"
#include "log.h"
+ Include dependency graph for l_settings.cpp:

Macros

#define CHECK_SETTING_SECURITY(L, name)
 

Functions

static int checkSettingSecurity (lua_State *L, const std::string &name)
 
static void push_settings_table (lua_State *L, const Settings *settings)
 

Macro Definition Documentation

◆ CHECK_SETTING_SECURITY

#define CHECK_SETTING_SECURITY (   L,
  name 
)
Value:
if (o->m_settings == g_settings) { \
if (checkSettingSecurity(L, name) == -1) \
return 0; \
}
static int checkSettingSecurity(lua_State *L, const std::string &name)
Definition: l_settings.cpp:43
Settings * g_settings
Definition: settings.cpp:37

Function Documentation

◆ checkSettingSecurity()

static int checkSettingSecurity ( lua_State *  L,
const std::string &  name 
)
inlinestatic

References errorstream, ModApiBase::getGuiEngine(), infostream, ScriptApiSecurity::isSecure(), and script_get_backtrace().

+ Here is the call graph for this function:

◆ push_settings_table()

static void push_settings_table ( lua_State *  L,
const Settings settings 
)
static

References Settings::getGroupNoEx(), Settings::getNames(), Settings::getNoEx(), and push_settings_table().

Referenced by LuaSettings::l_to_table(), and push_settings_table().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: