diff options
author | Eugene Sandulenko | 2006-03-31 23:51:19 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-03-31 23:51:19 +0000 |
commit | 8a5df05aa02c2cb08b2d59bf904bc05087fe5c31 (patch) | |
tree | 417007712365697d35ca18306698af0364cf7665 | |
parent | 8272591c8d11edff8fe9e0dd3f05a546a7e29658 (diff) | |
download | scummvm-rg350-8a5df05aa02c2cb08b2d59bf904bc05087fe5c31.tar.gz scummvm-rg350-8a5df05aa02c2cb08b2d59bf904bc05087fe5c31.tar.bz2 scummvm-rg350-8a5df05aa02c2cb08b2d59bf904bc05087fe5c31.zip |
Hide eval debug output deeper to level 5. Report total number of defined
variables.
svn-id: r21521
-rw-r--r-- | gui/eval.cpp | 4 | ||||
-rw-r--r-- | gui/eval.h | 2 | ||||
-rw-r--r-- | gui/theme-config.cpp | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/gui/eval.cpp b/gui/eval.cpp index 5dcfdfe124..5d661cc9cf 100644 --- a/gui/eval.cpp +++ b/gui/eval.cpp @@ -49,7 +49,7 @@ Eval::~Eval() { int Eval::eval(const String &input, const String §ion, const String &name, int startpos) { int result; - debug(3, "%s=%s", name.c_str(), input.c_str()); + debug(5, "%s=%s", name.c_str(), input.c_str()); strncpy(_input, input.c_str(), 256); _section = section; @@ -65,7 +65,7 @@ int Eval::eval(const String &input, const String §ion, const String &name, i level2(&result); - debug(3, "Result: %d", result); + debug(5, "Result: %d", result); return result; } diff --git a/gui/eval.h b/gui/eval.h index 1b2df123d4..1a0b6f91ff 100644 --- a/gui/eval.h +++ b/gui/eval.h @@ -65,6 +65,8 @@ public: int getVar(String s) { return getVar_(s.c_str()); }; + uint getNumVars() { return _vars.size(); } + void reset(); typedef HashMap<String, int> VariablesMap; diff --git a/gui/theme-config.cpp b/gui/theme-config.cpp index 22c641bb93..9e490ff358 100644 --- a/gui/theme-config.cpp +++ b/gui/theme-config.cpp @@ -522,6 +522,8 @@ void Theme::loadTheme(Common::ConfigFile &config, bool reset) { sprintf(name, "%dx%d", x, y); if (config.hasSection(name)) processResSection(config, name); + + debug(3, "Number of variables: %d", _evaluator->getNumVars()); } } // End of namespace GUI |