Provides a Lua interpreter, to drive the game_controller. More...
#include "scripting/application_lua_kernel.hpp"
#include "config.hpp"
#include "game_errors.hpp"
#include "log.hpp"
#include "scripting/lua_common.hpp"
#include "scripting/lua_cpp_function.hpp"
#include "scripting/lua_fileops.hpp"
#include "scripting/lua_kernel_base.hpp"
#include "scripting/lua_preferences.hpp"
#include "scripting/plugins/context.hpp"
#include "scripting/plugins/manager.hpp"
#include <map>
#include <sstream>
#include <string>
#include <thread>
#include <utility>
#include <functional>
#include <boost/range/adaptors.hpp>
#include "lua/wrapper_lauxlib.h"
Go to the source code of this file.
Classes | |
struct | lua_context_backend |
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) |
Functions | |
static int | intf_describe_plugins (lua_State *L) |
static int | intf_delay (lua_State *L) |
static lua_State * | get_new_thread (lua_State *L) |
static int | impl_context_backend (lua_State *L, std::shared_ptr< lua_context_backend > backend, std::string req_name) |
static int | impl_context_accessor (lua_State *L, std::shared_ptr< lua_context_backend > backend, plugins_context::accessor_function func) |
Variables | |
static lg::log_domain | log_scripting_lua ("scripting/lua") |
static char * | v_threadtableKey = 0 |
static void *const | threadtableKey = static_cast<void *> (& v_threadtableKey) |
Provides a Lua interpreter, to drive the game_controller.
Definition in file application_lua_kernel.cpp.
#define DBG_LUA LOG_STREAM(debug, log_scripting_lua) |
Definition at line 57 of file application_lua_kernel.cpp.
#define ERR_LUA LOG_STREAM(err, log_scripting_lua) |
Definition at line 60 of file application_lua_kernel.cpp.
#define LOG_LUA LOG_STREAM(info, log_scripting_lua) |
Definition at line 58 of file application_lua_kernel.cpp.
#define WRN_LUA LOG_STREAM(warn, log_scripting_lua) |
Definition at line 59 of file application_lua_kernel.cpp.
|
static |
Definition at line 140 of file application_lua_kernel.cpp.
References threadtableKey.
Referenced by application_lua_kernel::load_script_from_file(), and application_lua_kernel::load_script_from_string().
|
static |
Definition at line 240 of file application_lua_kernel.cpp.
References luaW_pushconfig(), and luaW_toconfig().
Referenced by application_lua_kernel::thread::run_script().
|
static |
Definition at line 226 of file application_lua_kernel.cpp.
References plugins_manager::event::data, luaW_checkconfig(), and plugins_manager::event::name.
Referenced by application_lua_kernel::thread::run_script().
|
static |
Definition at line 89 of file application_lua_kernel.cpp.
Referenced by application_lua_kernel::application_lua_kernel().
|
static |
Definition at line 62 of file application_lua_kernel.cpp.
References DBG_LUA, plugins_manager::get(), plugins_manager::get_name(), string_enums::enum_base< Definition >::get_string(), i, draw::line(), PLAIN_LOG, plugins_manager::size(), and utf8::size().
Referenced by application_lua_kernel::application_lua_kernel().
|
static |
|
static |
Definition at line 138 of file application_lua_kernel.cpp.
Referenced by get_new_thread().
|
static |
Definition at line 137 of file application_lua_kernel.cpp.