compat52 for luajit2

This commit is contained in:
云风
2012-09-11 19:54:12 +08:00
parent 481dfb85bb
commit 7e37bc6ee3
10 changed files with 482 additions and 10 deletions

View File

@@ -3,6 +3,7 @@
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
#include "luacompat52.h"
#include <string.h>
#include <stdlib.h>
@@ -90,6 +91,7 @@ traceback (lua_State *L) {
int
snlua_init(lua_State *L, struct skynet_context *ctx, const char * args) {
luaL_init(L);
lua_gc(L, LUA_GCSTOP, 0);
luaL_openlibs(L);
lua_pushlightuserdata(L, ctx);