#include <stddef.h>
#include "llimits.h"
#include "lua.h"
gehe zum Quellcode dieser Datei
|
#define | MEMERRMSG "not enough memory" |
|
#define | luaM_reallocv(L, b, on, n, e) |
|
#define | luaM_freemem(L, b, s) luaM_realloc_(L, (b), (s), 0) |
|
#define | luaM_free(L, b) luaM_realloc_(L, (b), sizeof(*(b)), 0) |
|
#define | luaM_freearray(L, b, n, t) luaM_reallocv(L, (b), n, 0, sizeof(t)) |
|
#define | luaM_malloc(L, t) luaM_realloc_(L, NULL, 0, (t)) |
|
#define | luaM_new(L, t) cast(t *, luaM_malloc(L, sizeof(t))) |
|
#define | luaM_newvector(L, n, t) cast(t *, luaM_reallocv(L, NULL, 0, n, sizeof(t))) |
|
#define | luaM_growvector(L, v, nelems, size, t, limit, e) |
|
#define | luaM_reallocvector(L, v, oldn, n, t) ((v)=cast(t *, luaM_reallocv(L, v, oldn, n, sizeof(t)))) |
|
#define luaM_growvector |
( |
|
L, |
|
|
|
v, |
|
|
|
nelems, |
|
|
|
size, |
|
|
|
t, |
|
|
|
limit, |
|
|
|
e |
|
) |
| |
Wert:if ((nelems)+1 > (size)) \
Definiert in Zeile 33 der Datei lmem.h.
#define luaM_reallocv |
( |
|
L, |
|
|
|
b, |
|
|
|
on, |
|
|
|
n, |
|
|
|
e |
|
) |
| |
Wert:
luaM_realloc_(
L, (b), (
on)*(e), (
n)*(e)) : \
Definiert in Zeile 19 der Datei lmem.h.
#define MEMERRMSG "not enough memory" |
Definiert in Zeile 46 der Datei lmem.c.
50 if (*size >= limit/2) {