diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-30 08:36:07 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-30 08:36:07 +0000 |
commit | cd7dae28b034deebc9c2c2469ed9d8f1f3dab1ed (patch) | |
tree | 80cead86cff364718c968849e1c185121a79892d /sca-cpp/trunk/modules/eval/environment.hpp | |
parent | a9941f3ba6624b88ef62a2a7bf260f50761ffbf9 (diff) |
Added debug macros and cleaned up debug logging. Added locking macros used when compiling for multithreading. Fixed value conversions to numbers. Fixed compile warnings.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@885348 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/eval/environment.hpp')
-rw-r--r-- | sca-cpp/trunk/modules/eval/environment.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sca-cpp/trunk/modules/eval/environment.hpp b/sca-cpp/trunk/modules/eval/environment.hpp index fa9667b1ba..3a19c01deb 100644 --- a/sca-cpp/trunk/modules/eval/environment.hpp +++ b/sca-cpp/trunk/modules/eval/environment.hpp @@ -82,7 +82,7 @@ const bool isDotVariable(const value& var) { const Frame makeBinding(const Frame& frameSoFar, const list<value>& variables, const list<value> values) { if (isNil(variables)) { if (!isNil(values)) - std::cout << "Too many arguments supplied " << values << "\n"; + logStream() << "Too many arguments supplied " << values << std::endl; return frameSoFar; } if (isDotVariable(car(variables))) @@ -90,7 +90,7 @@ const Frame makeBinding(const Frame& frameSoFar, const list<value>& variables, c if (isNil(values)) { if (!isNil(variables)) - std::cout << "Too few arguments supplied " << variables << "\n"; + logStream() << "Too few arguments supplied " << variables << std::endl; return frameSoFar; } @@ -163,7 +163,7 @@ const value lookupEnvScan(const value& var, const list<value>& vars, const list< const value lookupEnvLoop(const value& var, const Env& env) { if(env == theEmptyEnvironment()) { - std::cout << "Unbound variable " << var << "\n"; + logStream() << "Unbound variable " << var << std::endl; return value(); } return lookupEnvScan(var, frameVariables(*firstFrame(env)), frameValues(*firstFrame(env)), env); |