summaryrefslogtreecommitdiff
path: root/include/BLua.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/BLua.h')
-rw-r--r--include/BLua.h60
1 files changed, 30 insertions, 30 deletions
diff --git a/include/BLua.h b/include/BLua.h
index 07b1cff..4e350aa 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.20 2004-11-28 12:20:10 pixel Exp $ */
+/* $Id: BLua.h,v 1.21 2004-12-12 02:10:09 pixel Exp $ */
#ifndef __BLUA_H__
#define __BLUA_H__
@@ -232,34 +232,34 @@ class LuaHelpers : public Base {
mask = 1 << j;
if (tab[caller].argtypes[i] & mask) {
switch(mask) {
- case LUA_OBJECT:
- if (L->istable(i + 1 + add)) {
- L->push("__obj");
- L->gettable(i + 1 + add);
- arg_valid = L->isuserdata();
- L->pop();
- } else {
- arg_valid = L->isnil(i + 1 + add);
- }
- break;
- case LUA_TABLE:
- arg_valid = L->istable(i + 1 + add);
- break;
- case LUA_BOOLEAN:
- arg_valid = L->isboolean(i + 1 + add);
- break;
- case LUA_NUMBER:
- arg_valid = L->isnumber(i + 1 + add);
- break;
- case LUA_STRING:
- arg_valid = L->isstring(i + 1 + add);
- break;
- case LUA_FUNCTION:
- arg_valid = L->isfunction(i + 1 + add);
- break;
- case LUA_NIL:
- arg_valid = L->isnil(i + 1 + add);
- break;
+ case LUA_OBJECT:
+ if (L->istable(i + 1 + add)) {
+ L->push("__obj");
+ L->gettable(i + 1 + add);
+ arg_valid = L->isuserdata();
+ L->pop();
+ } else {
+ arg_valid = L->isnil(i + 1 + add);
+ }
+ break;
+ case LUA_TABLE:
+ arg_valid = L->istable(i + 1 + add);
+ break;
+ case LUA_BOOLEAN:
+ arg_valid = L->isboolean(i + 1 + add);
+ break;
+ case LUA_NUMBER:
+ arg_valid = L->isnumber(i + 1 + add);
+ break;
+ case LUA_STRING:
+ arg_valid = L->isstring(i + 1 + add);
+ break;
+ case LUA_FUNCTION:
+ arg_valid = L->isfunction(i + 1 + add);
+ break;
+ case LUA_NIL:
+ arg_valid = L->isnil(i + 1 + add);
+ break;
}
}
}
@@ -272,7 +272,7 @@ class LuaHelpers : public Base {
if (method) {
L->error(String("Invalid arguments to method `") + typeid(T).name() + "::" + tab[caller].name + "'");
} else {
- L->error(String("Invalid arguments to function `") + typeid(T).name() + "::" + tab[caller].name + "'");
+ L->error(String("Invalid arguments to function `") + typeid(T).name() + " " + tab[caller].name + "'");
}
}