The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Macros | Functions | Variables
lua_fileops.cpp File Reference
#include "lua_fileops.hpp"
#include "exceptions.hpp"
#include "filesystem.hpp"
#include "game_config.hpp"
#include "game_errors.hpp"
#include "log.hpp"
#include "scripting/lua_api.hpp"
#include "scripting/lua_common.hpp"
#include <exception>
#include <string>
#include <boost/scoped_ptr.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include "lua/lauxlib.h"
#include "lua/lua.h"
#include "lua/luaconf.h"
Include dependency graph for lua_fileops.cpp:

Go to the source code of this file.

Classes

class  lua_fileops::lua_filestream
 

Namespaces

 lua_fileops
 

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 bool lua_fileops::resolve_filename (std::string &filename, const std::string &currentdir)
 resolves filename where currentdir is the current directory, note that currentdir is no absolute directory More...
 
int lua_fileops::intf_have_file (lua_State *L)
 Checks if a file exists (not necessarily a Lua script). More...
 
int lua_fileops::intf_read_file (lua_State *L)
 Checks if a file exists (not necessarily a Lua script). More...
 
int lua_fileops::load_file (lua_State *L)
 Loads a Lua file and pushes the contents on the stack. More...
 

Variables

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

Macro Definition Documentation

#define DBG_LUA   LOG_STREAM(debug, log_scripting_lua)

Definition at line 36 of file lua_fileops.cpp.

#define ERR_LUA   LOG_STREAM(err, log_scripting_lua)

Definition at line 39 of file lua_fileops.cpp.

Referenced by lua_fileops::lua_filestream::lua_read_data().

#define LOG_LUA   LOG_STREAM(info, log_scripting_lua)

Definition at line 37 of file lua_fileops.cpp.

Referenced by lua_fileops::lua_filestream::lua_loadfile().

#define WRN_LUA   LOG_STREAM(warn, log_scripting_lua)

Definition at line 38 of file lua_fileops.cpp.

Variable Documentation

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