mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
skynet defined lua alloc
This commit is contained in:
14
service-src/luaalloc.h
Normal file
14
service-src/luaalloc.h
Normal 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
|
||||
Reference in New Issue
Block a user