The Battle for Wesnoth  1.15.1+dev
Macros | Functions
lmem.cpp File Reference
#include "lprefix.h"
#include <stddef.h>
#include "lua.h"
#include "ldebug.h"
#include "ldo.h"
#include "lgc.h"
#include "lmem.h"
#include "lobject.h"
#include "lstate.h"
Include dependency graph for lmem.cpp:

Go to the source code of this file.


#define lmem_c
#define LUA_CORE
#define MINSIZEARRAY   4


void * luaM_growaux_ (lua_State *L, void *block, int *size, size_t size_elems, int limit, const char *what)
l_noret luaM_toobig (lua_State *L)
void * luaM_realloc_ (lua_State *L, void *block, size_t osize, size_t nsize)

Macro Definition Documentation

◆ lmem_c

#define lmem_c

Definition at line 7 of file lmem.cpp.


#define LUA_CORE

Definition at line 8 of file lmem.cpp.


#define MINSIZEARRAY   4

Definition at line 45 of file lmem.cpp.

Referenced by luaM_growaux_().

Function Documentation

◆ luaM_growaux_()

void* luaM_growaux_ ( lua_State L,
void *  block,
int *  size,
size_t  size_elems,
int  limit,
const char *  what 

Definition at line 48 of file lmem.cpp.

References luaG_runerror(), luaM_reallocv, and MINSIZEARRAY.

◆ luaM_realloc_()

void* luaM_realloc_ ( lua_State L,
void *  block,
size_t  osize,
size_t  nsize 

◆ luaM_toobig()

l_noret luaM_toobig ( lua_State L)

Definition at line 68 of file lmem.cpp.

References luaG_runerror().

Referenced by luaS_newlstr(), and luaS_newudata().