new function "luaI_buffer".
This commit is contained in:
3
luamem.h
3
luamem.h
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
** mem.c
|
||||
** memory manager for lua
|
||||
** $Id: mem.h,v 1.2 1995/01/13 22:11:12 roberto Exp roberto $
|
||||
** $Id: mem.h,v 1.3 1996/02/22 20:34:33 roberto Exp roberto $
|
||||
*/
|
||||
|
||||
#ifndef mem_h
|
||||
@@ -14,6 +14,7 @@
|
||||
void luaI_free (void *block);
|
||||
void *luaI_malloc (unsigned long size);
|
||||
void *luaI_realloc (void *oldblock, unsigned long size);
|
||||
void* luaI_buffer (unsigned long size);
|
||||
|
||||
#define new(s) ((s *)luaI_malloc(sizeof(s)))
|
||||
#define newvector(n,s) ((s *)luaI_malloc((n)*sizeof(s)))
|
||||
|
||||
Reference in New Issue
Block a user