summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-05-24 20:49:10 -0700
committerPixel <pixel@nobis-crew.org>2009-05-24 20:49:10 -0700
commit37fb09922f93215b2be2c76080f64e754bf2c6aa (patch)
tree6196f90018b071a623fb42f06ed96c48b59da5ae /lib
parente20675412a5d4aadd861517b40ca200d9b605225 (diff)
Moving lua_recast out of LuaOCCI into BLua.h
Diffstat (limited to 'lib')
-rw-r--r--lib/LuaOCCI.cc19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/LuaOCCI.cc b/lib/LuaOCCI.cc
index 17279db..8bd507b 100644
--- a/lib/LuaOCCI.cc
+++ b/lib/LuaOCCI.cc
@@ -7,25 +7,6 @@ using namespace oracle::occi;
static Environment * global_env = 0;
-template<class T>
-T * lua_recast(Lua * L, int n = 1) {
- Base * b;
- T * r;
-
- b = (Base *) LuaObject::getme(L, n);
- if (!b) {
- L->error("Base object required; got null.");
- }
-
- r = dynamic_cast<T *>(b);
-
- if (!r) {
- L->error(String("Object not compatible; expecting ") + typeid(r).name() + " but got *" + typeid(*b).name() + " instead.");
- }
-
- return r;
-}
-
#define export_enum(L, n) \
L->push(#n); \
L->push((lua_Number) n); \