diff options
author | yinsimei | 2017-07-03 21:22:57 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-13 18:27:45 +0200 |
commit | 082bf55b56712715391831b851b5b4aec64c8632 (patch) | |
tree | 6679679794cb252c5e7d4a0d434d5b3e26e1e921 /engines | |
parent | 9a57db6b9c45363605bd7e33a2428fff88d28652 (diff) | |
download | scummvm-rg350-082bf55b56712715391831b851b5b4aec64c8632.tar.gz scummvm-rg350-082bf55b56712715391831b851b5b4aec64c8632.tar.bz2 scummvm-rg350-082bf55b56712715391831b851b5b4aec64c8632.zip |
SLUDGE: clean debug info
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sludge/variable.cpp | 43 |
1 files changed, 3 insertions, 40 deletions
diff --git a/engines/sludge/variable.cpp b/engines/sludge/variable.cpp index e811c65f15..13f6608727 100644 --- a/engines/sludge/variable.cpp +++ b/engines/sludge/variable.cpp @@ -516,7 +516,7 @@ bool addVarToStack(const variable &va, variableStack *&thisStack) { return false; newStack->next = thisStack; thisStack = newStack; - debug(kSludgeDebugStackMachine, "Variable %s was added to stack", getTextFromAnyVar(va)); + //debug(kSludgeDebugStackMachine, "Variable %s was added to stack", getTextFromAnyVar(va)); return true; } @@ -532,7 +532,7 @@ bool addVarToStackQuick(variable &va, variableStack *&thisStack) { newStack->next = thisStack; thisStack = newStack; - debug(kSludgeDebugStackMachine, "Variable %s was added to stack quick", getTextFromAnyVar(va)); + //debug(kSludgeDebugStackMachine, "Variable %s was added to stack quick", getTextFromAnyVar(va)); return true; } @@ -605,48 +605,11 @@ void trimStack(variableStack *&stack) { variableStack *killMe = stack; stack = stack->next; - debug(kSludgeDebugStackMachine, "Variable %s was removed from stack", getTextFromAnyVar(killMe->thisVar)); + //debug(kSludgeDebugStackMachine, "Variable %s was removed from stack", getTextFromAnyVar(killMe->thisVar)); // When calling this, we've ALWAYS checked that stack != NULL unlinkVar(killMe->thisVar); delete killMe; } -/* - void debugVar (FILE * fp, const variable & thisVar) { - switch (thisVar.varType) { - case SVT_INT: - fprintf (fp, "integer value %i", thisVar.varData.intValue); - break; - - case SVT_FUNC: - fprintf (fp, "pointer to function %i", thisVar.varData.intValue); - break; - - case SVT_BUILT: - fprintf (fp, "pointer to bif %i", thisVar.varData.intValue); - break; - - case SVT_OBJTYPE: - fprintf (fp, "object type %i", thisVar.varData.intValue); - break; - - case SVT_STRING: - fprintf (fp, "\"%s\"", thisVar.varData.theString); - break; - - case SVT_FILE: - fprintf (fp, "file handle %i", thisVar.varData.intValue); - break; - - case SVT_NULL: - fprintf (fp, "null"); - break; - - default: - fprintf (fp, "unknown variable type"); - break; - } - } - */ } // End of namespace Sludge |