#include "scripting/lua_kernel_base.hpp"#include "global.hpp"#include "exceptions.hpp"#include "game_config.hpp"#include "game_errors.hpp"#include "log.hpp"#include "lua_jailbreak_exception.hpp"#include "seed_rng.hpp"#include "scripting/lua_common.hpp"#include "scripting/lua_cpp_function.hpp"#include "scripting/lua_fileops.hpp"#include "scripting/lua_formula_bridge.hpp"#include "scripting/lua_gui2.hpp"#include "scripting/lua_map_location_ops.hpp"#include "scripting/lua_rng.hpp"#include "scripting/lua_types.hpp"#include "scripting/push_check.hpp"#include "version.hpp"#include "serialization/string_utils.hpp"#include "utils/functional.hpp"#include "utils/markov_generator.hpp"#include "utils/context_free_grammar_generator.hpp"#include <boost/scoped_ptr.hpp>#include <cstring>#include <exception>#include <new>#include <string>#include <sstream>#include <vector>#include "lua/lauxlib.h"#include "lua/lua.h"#include "lua/lualib.h"
Go to the source code of this file.
Macros | |
| #define | DBG_LUA LOG_STREAM(debug, log_scripting_lua) |
| #define | LOG_LUA LOG_STREAM(info, log_scripting_lua) |
| #define | WRN_LUA LOG_STREAM(warn, log_scripting_lua) |
| #define | ERR_LUA LOG_STREAM(err, log_scripting_lua) |
Typedefs | |
| typedef int(lua_kernel_base::* | member_callback )(lua_State *L) |
Functions | |
| static int | intf_compare_versions (lua_State *L) |
| Compares 2 version strings - which is newer. More... | |
| static int | impl_name_generator_call (lua_State *L) |
| static int | impl_name_generator_collect (lua_State *L) |
| static int | intf_name_generator (lua_State *L) |
| template<member_callback method> | |
| int | dispatch (lua_State *L) |
Variables | |
| static lg::log_domain | log_scripting_lua ("scripting/lua") |
| static const char * | Gen = "name generator" |
| #define DBG_LUA LOG_STREAM(debug, log_scripting_lua) |
Definition at line 60 of file lua_kernel_base.cpp.
Referenced by lua_kernel_base::intf_print(), and lua_kernel_base::intf_require().
| #define ERR_LUA LOG_STREAM(err, log_scripting_lua) |
Definition at line 63 of file lua_kernel_base.cpp.
Referenced by lua_kernel_base::intf_show_dialog(), lua_kernel_base::intf_show_lua_console(), lua_kernel_base::intf_show_message_dialog(), lua_kernel_base::intf_show_popup_dialog(), and lua_kernel_base::log_error().
| #define LOG_LUA LOG_STREAM(info, log_scripting_lua) |
Definition at line 61 of file lua_kernel_base.cpp.
| #define WRN_LUA LOG_STREAM(warn, log_scripting_lua) |
Definition at line 62 of file lua_kernel_base.cpp.
Definition at line 250 of file lua_kernel_base.cpp.
Definition at line 253 of file lua_kernel_base.cpp.
Definition at line 171 of file lua_kernel_base.cpp.
References name_generator::generate(), lua_pushstring(), and lua_touserdata().
Referenced by lua_kernel_base::lua_kernel_base().
Definition at line 178 of file lua_kernel_base.cpp.
References lua_touserdata(), and name_generator::~name_generator().
Referenced by lua_kernel_base::lua_kernel_base().
Compares 2 version strings - which is newer.
Definition at line 76 of file lua_kernel_base.cpp.
References do_version_check(), lua_pushboolean(), luaL_argerror(), luaL_checkstring, OP_INVALID, and parse_version_op().
Referenced by lua_kernel_base::lua_kernel_base().
Definition at line 185 of file lua_kernel_base.cpp.
References Gen, name_generator::is_valid(), lua_error(), lua_isstring(), lua_istable, lua_newuserdata(), lua_next(), lua_pop, lua_pushnil(), lua_pushstring(), lua_setmetatable(), lua_tostring, luaL_argerror(), luaL_checkstring, luaL_getmetatable, luaL_optinteger(), utils::parenthetical_split(), and utils::split().
Referenced by lua_kernel_base::lua_kernel_base().
|
static |
Definition at line 66 of file lua_kernel_base.cpp.
Referenced by intf_name_generator(), and lua_kernel_base::lua_kernel_base().
|
static |
1.8.8