cache lua code load

This commit is contained in:
云风
2013-12-17 18:26:08 +08:00
parent 2bf65084cd
commit 8e031c1b21
5 changed files with 340 additions and 29 deletions

View 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