Revision: 1543
          http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=1543&view=rev
Author:   rorthomas
Date:     2010-12-11 11:40:44 +0000 (Sat, 11 Dec 2010)

Log Message:
-----------
updates for angelscript 2.20.1

Modified Paths:
--------------
    trunk/source/main/ScriptEngine.cpp

Modified: trunk/source/main/ScriptEngine.cpp
===================================================================
--- trunk/source/main/ScriptEngine.cpp  2010-12-11 11:40:06 UTC (rev 1542)
+++ trunk/source/main/ScriptEngine.cpp  2010-12-11 11:40:44 UTC (rev 1543)
@@ -159,17 +159,17 @@
 
        // Show the call stack with the variables
        LogManager::getSingleton().logMessage("--- call stack ---");
-       for( int n = 0; n < ctx->GetCallstackSize(); n++ )
-       {
-               funcID = ctx->GetCallstackFunction(n);
-               const asIScriptFunction *func = 
engine->GetFunctionDescriptorById(funcID);
-               line = ctx->GetCallstackLineNumber(n,&col);
-               
LogManager::getSingleton().logMessage(String(func->GetModuleName()) + ":" + 
func->GetDeclaration() + ":" + StringConverter::toString(line)+ "," + 
StringConverter::toString(col));
-
-               PrintVariables(ctx, n);
-       }
+       char tmp[2048]="";
+    for( asUINT n = 1; n < ctx->GetCallstackSize(); n++ )
+    {
+       function = ctx->GetFunction(n);
+               sprintf(tmp, "%s (%d): %s\n", function->GetScriptSectionName(), 
ctx->GetLineNumber(n), function->GetDeclaration());
+               LogManager::getSingleton().logMessage(String(tmp));
+               //PrintVariables(ctx, n);
+    }
 }
 
+/*
 void ScriptEngine::LineCallback(asIScriptContext *ctx, void *param)
 {
        char tmp[1024]="";
@@ -229,6 +229,7 @@
                }
        }
 };
+*/
 
 // continue with initializing everything
 void ScriptEngine::init()


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
_______________________________________________
Rigsofrods-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel

Reply via email to