Include Lua error locus in SWIG error messages
This is standard information in Lua error messages, and makes it much easier to find bugs.
This commit is contained in:
parent
663c41e248
commit
c746ae7a0f
4 changed files with 19 additions and 20 deletions
|
|
@ -811,7 +811,7 @@ public:
|
|||
Printf(protoTypes, "\n\" %s\\n\"", fulldecl);
|
||||
Delete(fulldecl);
|
||||
} while ((sibl = Getattr(sibl, "sym:nextSibling")));
|
||||
Printf(f->code, "lua_pushstring(L,\"Wrong arguments for overloaded function '%s'\\n\"\n"
|
||||
Printf(f->code, "SWIG_Lua_pusherrstring(L,\"Wrong arguments for overloaded function '%s'\\n\"\n"
|
||||
"\" Possible C/C++ prototypes are:\\n\"%s);\n",symname,protoTypes);
|
||||
Delete(protoTypes);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue