use lua_clonefunction for load lua file

This commit is contained in:
Cloud Wu
2015-01-22 15:23:58 +08:00
parent a0adbb1103
commit 459347e24d
4 changed files with 130 additions and 6 deletions

View File

@@ -280,6 +280,7 @@ LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt,
LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data, int strip);
LUA_API void (lua_clonefunction) (lua_State *L, const void *eL);
/*
** coroutine functions