summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/BLua.h4
-rw-r--r--lib/LuaHandle.cc8
2 files changed, 7 insertions, 5 deletions
diff --git a/include/BLua.h b/include/BLua.h
index 1f746ec..0f76284 100644
--- a/include/BLua.h
+++ b/include/BLua.h
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: BLua.h,v 1.11 2003-12-14 22:04:33 pixel Exp $ */
+/* $Id: BLua.h,v 1.12 2003-12-26 20:36:07 pixel Exp $ */
#ifndef __BLUA_H__
#define __BLUA_H__
@@ -173,6 +173,8 @@ struct lua_functypes_t {
} \
}
+#include <typeinfo>
+
template <class T>
class LuaHelpers : public Base {
public:
diff --git a/lib/LuaHandle.cc b/lib/LuaHandle.cc
index 5e9a8ce..5107766 100644
--- a/lib/LuaHandle.cc
+++ b/lib/LuaHandle.cc
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: LuaHandle.cc,v 1.11 2003-12-14 21:13:33 pixel Exp $ */
+/* $Id: LuaHandle.cc,v 1.12 2003-12-26 20:36:07 pixel Exp $ */
#include "LuaHandle.h"
@@ -350,7 +350,7 @@ int sLuaHandle::copy(lua_State * _L, int dir) {
SWAP(s, d);
}
- ::copy(s, d, r);
+ s->copyto(d, r);
return 0;
}
@@ -610,8 +610,8 @@ void LuaBuffer::pushmembers(Lua * L) {
void LuaHandle::pushmembers(Lua * L) {
pushme(L, h);
- pushit(L, "read", sLuaHandle::read);
- pushit(L, "write", sLuaHandle::write);
+ pushit(L, "read", &sLuaHandle::read);
+ pushit(L, "write", &sLuaHandle::write);
pushit(L, "readU8", sLuaHandle::readU8);
pushit(L, "readU16", sLuaHandle::readU16);