The Battle for Wesnoth  1.19.4+dev
Namespaces | Macros | Functions | Variables
lua_rng.cpp File Reference
#include "scripting/lua_rng.hpp"
#include "log.hpp"
#include "mt_rng.hpp"
#include "scripting/lua_kernel_base.hpp"
#include "scripting/lua_common.hpp"
#include <string>
#include "lua/wrapper_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

◆ ERR_LUA

#define ERR_LUA   LOG_STREAM(err, log_lua)

Definition at line 28 of file lua_rng.cpp.

Variable Documentation

◆ log_lua

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