#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"
Go to the source code of this file.
|
void | luaM_free_ (lua_State *L, void *block, size_t osize) |
|
void * | luaM_growaux_ (lua_State *L, void *block, int nelems, int *psize, int size_elems, int limit, const char *what) |
|
void * | luaM_malloc_ (lua_State *L, size_t size, int tag) |
|
void * | luaM_realloc_ (lua_State *L, void *block, size_t osize, size_t nsize) |
|
void * | luaM_saferealloc_ (lua_State *L, void *block, size_t osize, size_t nsize) |
|
void * | luaM_shrinkvector_ (lua_State *L, void *block, int *size, int final_n, int size_elem) |
|
l_noret | luaM_toobig (lua_State *L) |
|
static void * | tryagain (lua_State *L, void *block, size_t osize, size_t nsize) |
|
◆ firsttry
#define firsttry |
( |
|
g, |
|
|
|
block, |
|
|
|
os, |
|
|
|
ns |
|
) |
| ((*g->frealloc)(g->ud, block, os, ns)) |
◆ lmem_c
Definition at line 7 of file lmem.c.
◆ LUA_CORE
Definition at line 8 of file lmem.c.
◆ MINSIZEARRAY
◆ luaM_free_()
void luaM_free_ |
( |
lua_State * |
L, |
|
|
void * |
block, |
|
|
size_t |
osize |
|
) |
| |
◆ luaM_growaux_()
void* luaM_growaux_ |
( |
lua_State * |
L, |
|
|
void * |
block, |
|
|
int |
nelems, |
|
|
int * |
psize, |
|
|
int |
size_elems, |
|
|
int |
limit, |
|
|
const char * |
what |
|
) |
| |
◆ luaM_malloc_()
void* luaM_malloc_ |
( |
lua_State * |
L, |
|
|
size_t |
size, |
|
|
int |
tag |
|
) |
| |
◆ luaM_realloc_()
void* luaM_realloc_ |
( |
lua_State * |
L, |
|
|
void * |
block, |
|
|
size_t |
osize, |
|
|
size_t |
nsize |
|
) |
| |
◆ luaM_saferealloc_()
void* luaM_saferealloc_ |
( |
lua_State * |
L, |
|
|
void * |
block, |
|
|
size_t |
osize, |
|
|
size_t |
nsize |
|
) |
| |
◆ luaM_shrinkvector_()
void* luaM_shrinkvector_ |
( |
lua_State * |
L, |
|
|
void * |
block, |
|
|
int * |
size, |
|
|
int |
final_n, |
|
|
int |
size_elem |
|
) |
| |
◆ luaM_toobig()
◆ tryagain()
static void* tryagain |
( |
lua_State * |
L, |
|
|
void * |
block, |
|
|
size_t |
osize, |
|
|
size_t |
nsize |
|
) |
| |
|
static |