More tweaks on tracebacks
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
* Add a slash-command to reload lua source code.
|
||||||
|
|
||||||
* Skeletal Mesh Tangible
|
* Skeletal Mesh Tangible
|
||||||
|
|
||||||
* Implement Interactive Temporary Variables
|
* Implement Interactive Temporary Variables
|
||||||
|
|||||||
@@ -50,9 +50,16 @@ int traceback_coroutine(lua_State *L) {
|
|||||||
if ((ar.currentline > 0) || (*ar.namewhat != 0) || (*ar.what != 'C')) {
|
if ((ar.currentline > 0) || (*ar.namewhat != 0) || (*ar.what != 'C')) {
|
||||||
any = true;
|
any = true;
|
||||||
lua_pushliteral(L, "\n\t");
|
lua_pushliteral(L, "\n\t");
|
||||||
lua_pushfstring(L, "%s", ar.short_src);
|
if (strcmp(ar.short_src, "<console>")==0)
|
||||||
if (ar.currentline > 0 && strcmp(ar.short_src, "<console>"))
|
{
|
||||||
lua_pushfstring(L, " line %d", ar.currentline);
|
lua_pushstring(L, "in the console");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
lua_pushfstring(L, "in %s", ar.short_src);
|
||||||
|
if (ar.currentline > 0)
|
||||||
|
lua_pushfstring(L, " line %d", ar.currentline);
|
||||||
|
}
|
||||||
if (*ar.namewhat != '\0') /* is there a name? */
|
if (*ar.namewhat != '\0') /* is there a name? */
|
||||||
lua_pushfstring(L, " in function " LUA_QS, ar.name);
|
lua_pushfstring(L, " in function " LUA_QS, ar.name);
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user