Fix some Luvit issues.

pull/47/merge
Robert G. Jakabosky 15 years ago
parent a264b26c48
commit f0fd8edddc

@ -364,7 +364,6 @@ static int nobj_try_loading_ffi(lua_State *L, const char *ffi_mod_name,
msg = lua_tostring(L, -1); msg = lua_tostring(L, -1);
} }
printf("Failed to install FFI-based bindings: %s\n", msg); printf("Failed to install FFI-based bindings: %s\n", msg);
lua_error(L);
lua_pop(L, 1); /* pop error message. */ lua_pop(L, 1); /* pop error message. */
} }
return err; return err;
@ -1041,12 +1040,14 @@ static const char zmq_ffi_lua_code[] = "local ffi=require\"ffi\"\n"
"local type = type\n" "local type = type\n"
"local tonumber = tonumber\n" "local tonumber = tonumber\n"
"local tostring = tostring\n" "local tostring = tostring\n"
"local sformat = string.format\n" "local sformat = require\"string\".format\n"
"local rawset = rawset\n" "local rawset = rawset\n"
"local setmetatable = setmetatable\n" "local setmetatable = setmetatable\n"
"local package = (require\"package\") or {}\n"
"local p_config = package.config\n" "local p_config = package.config\n"
"local p_cpath = package.cpath\n" "local p_cpath = package.cpath\n"
"\n" "\n"
"\n"
"local ffi_load_cmodule\n" "local ffi_load_cmodule\n"
"\n" "\n"
"-- try to detect luvit.\n" "-- try to detect luvit.\n"

Loading…
Cancel
Save