The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Macros | Functions | Variables
lua_rng.cpp File Reference
#include "lua_rng.hpp"
#include "log.hpp"
#include "mt_rng.hpp"
#include "lua_kernel_base.hpp"
#include <new>
#include <string>
#include "lua/lua.h"
#include "lua/lauxlib.h"
Include dependency graph for lua_rng.cpp:

Go to the source code of this file.

Namespaces

 lua_rng
 

Macros

#define ERR_LUA   LOG_STREAM(err, log_lua)
 

Functions

int lua_rng::impl_rng_create (lua_State *)
 Implementations for lua callbacks. More...
 
int lua_rng::impl_rng_destroy (lua_State *L)
 
int lua_rng::impl_rng_seed (lua_State *L)
 
int lua_rng::impl_rng_draw (lua_State *L)
 
void lua_rng::load_tables (lua_State *)
 Creates the metatable for RNG objects, and adds the Rng table which contains the constructor. More...
 

Variables

static lg::log_domain log_lua ("scripting/lua")
 
static const char * lua_rng::Rng = "Rng"
 

Macro Definition Documentation

#define ERR_LUA   LOG_STREAM(err, log_lua)

Definition at line 28 of file lua_rng.cpp.

Referenced by lua_rng::impl_rng_destroy().

Variable Documentation

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