skynet defined lua alloc

This commit is contained in:
云风
2013-12-19 17:00:07 +08:00
parent 331c8009f8
commit 40281a8853
4 changed files with 191 additions and 1 deletions

14
service-src/luaalloc.h Normal file
View File

@@ -0,0 +1,14 @@
#ifndef skynet_lua_alloc_h
#define skynet_lua_alloc_h
#include <lua.h>
#include <stddef.h>
struct skynet_lalloc;
struct skynet_lalloc * skynet_lalloc_new(size_t prealloc);
void skynet_lalloc_delete(struct skynet_lalloc *);
void * skynet_lua_alloc(void *ud, void *ptr, size_t osize, size_t nsize);
#endif