mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
cache lua code load
This commit is contained in:
12
service-src/luacode_cache.h
Normal file
12
service-src/luacode_cache.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef lua_code_cache_h
|
||||
#define lua_code_cache_h
|
||||
|
||||
#include <lua.h>
|
||||
#include <stddef.h>
|
||||
|
||||
const char * luacode_load(const char * key, const char * code, size_t *sz);
|
||||
|
||||
int luacode_loadfile(lua_State *L, const char *filename);
|
||||
int luacode_lib(lua_State *);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user