diff options
Diffstat (limited to 'lib/BLua.cc')
-rw-r--r-- | lib/BLua.cc | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/lib/BLua.cc b/lib/BLua.cc index 6494211..7dbf6c1 100644 --- a/lib/BLua.cc +++ b/lib/BLua.cc @@ -21,7 +21,6 @@ #include "BLua.h" #include "Buffer.h" #include <lualib.h> -#include <llimits.h> #ifndef BUFFERSIZE #define BUFFERSIZE 2048 @@ -547,6 +546,9 @@ Lua * Lua::spawn_from_thread(lua_State * __L) { return L; } +#define IntPoint(p) ((unsigned int)(lu_mem)(p)) +typedef size_t lu_mem; + void Lua::weaken() { if (_is_thread) { push(); // -1 = nil @@ -633,6 +635,10 @@ void Lua::open_debug() { lua_pop(L, 1); } +extern "C" { +LUALIB_API int (luaopen_dir) (lua_State *L); +} + void Lua::open_dir() { luaopen_dir(L); lua_pop(L, 1); @@ -989,14 +995,14 @@ void Lua::load(const String & s, bool docall) throw (GeneralException) { } } -extern "C" void luacmain(lua_State * L, int stripping, lua_Chunkwriter w, void * uD, int listing); +//extern "C" void luacmain(lua_State * L, int stripping, lua_Chunkwriter w, void * uD, int listing); void Lua::dump(Handle * h, bool strip, int listing) { - DumpF lf; - - lf.f = h; - - luacmain(L, strip, LuaStatics::putF, &lf, listing); +// DumpF lf; +// +// lf.f = h; +// +// luacmain(L, strip, LuaStatics::putF, &lf, listing); } void Lua::dumpvars(Handle * h, const String & prefix, int i) { @@ -1278,7 +1284,7 @@ int Lua::sethook(lua_Hook func, int mask, int count) { } void Lua::do_break() { - lua_break(L); +// lua_break(L); } void Lua::lock() { |