78 return "Adding preferences table...\n";
#define lua_pushcfunction(L, f)
Variant for storing WML attributes.
LUA_API int lua_getglobal(lua_State *L, const char *name)
void set(const std::string &key, bool value)
Definitions for the interface to Wesnoth Markup Language (WML).
void luaW_pushscalar(lua_State *L, const config::attribute_value &v)
Converts an attribute value into a Lua object pushed at the top of the stack.
static int impl_preferences_get(lua_State *L)
The __index metamethod.
config::attribute_value get_as_attribute(const std::string &key)
LUA_API int lua_setmetatable(lua_State *L, int objindex)
static int impl_preferences_set(lua_State *L)
The __newindex metamethod.
LUA_API void lua_pushvalue(lua_State *L, int idx)
std::string register_table(lua_State *L)
bool luaW_toscalar(lua_State *L, int index, config::attribute_value &v)
Converts the value at the top of the stack to an attribute value.
LUA_API const char * lua_pushstring(lua_State *L, const char *s)
LUA_API void lua_setfield(lua_State *L, int idx, const char *k)
#define luaL_checkstring(L, n)