diff options
author | pixel <pixel> | 2004-12-12 02:10:09 +0000 |
---|---|---|
committer | pixel <pixel> | 2004-12-12 02:10:09 +0000 |
commit | 343b79939ec69483a478ace5ab402463523f8e83 (patch) | |
tree | 20285df246478d5450c7955d43516214c83d497c | |
parent | 822168327ddf2e8963cf820caef0d119ca19515e (diff) |
Typo...
-rw-r--r-- | include/BLua.h | 60 |
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 + "'"); } } |