The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Macros | Typedefs | Functions | Variables
lua_kernel_base.cpp File Reference
#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"
Include dependency graph for lua_kernel_base.cpp:

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"
 

Macro Definition Documentation

#define DBG_LUA   LOG_STREAM(debug, log_scripting_lua)
#define ERR_LUA   LOG_STREAM(err, log_scripting_lua)
#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.

Typedef Documentation

typedef int(lua_kernel_base::* member_callback)(lua_State *L)

Definition at line 250 of file lua_kernel_base.cpp.

Function Documentation

template<member_callback method>
int dispatch ( lua_State L)

Definition at line 253 of file lua_kernel_base.cpp.

static int impl_name_generator_call ( lua_State L)
static
static int impl_name_generator_collect ( lua_State L)
static
static int intf_compare_versions ( lua_State L)
static

Compares 2 version strings - which is newer.

  • Args 1,3: version strings
  • Arg 2: comparison operator (string)
  • Ret 1: comparison result

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().

static int intf_name_generator ( lua_State L)
static

Variable Documentation

const char* Gen = "name generator"
static

Definition at line 66 of file lua_kernel_base.cpp.

Referenced by intf_name_generator(), and lua_kernel_base::lua_kernel_base().

lg::log_domain log_scripting_lua("scripting/lua")
static