Mercurial > hg > vampy
diff PyPlugin.h @ 67:146d14ab15e7
Debug output: off by default, on with VAMPY_VERBOSE environment variable
author | Chris Cannam |
---|---|
date | Mon, 17 Nov 2014 10:03:44 +0000 |
parents | 5664fe298af2 |
children | 40a01bb24209 f5c028376bf9 |
line wrap: on
line diff
--- a/PyPlugin.h Mon Nov 17 09:37:59 2014 +0000 +++ b/PyPlugin.h Mon Nov 17 10:03:44 2014 +0000 @@ -49,7 +49,7 @@ #define _CLASS_METHOD_ m_class << "::" << method #define PLUGIN_ERROR "ERROR: In Vampy plugin [" << _CLASS_METHOD_ << "]" << endl << "Cause: " #define DEBUG_NAME "[Vampy::call] " << _CLASS_METHOD_ << " " -#define DEAFULT_RETURN "Method [" << _CLASS_METHOD_ << "] is not implemented. Returning default value." +#define DEFAULT_RETURN "Method [" << _CLASS_METHOD_ << "] is not implemented. Returning default value." #define FLAG_VALUE "Flag: " << flagName << ": " << ((rValue==0)?"False":"True") #include <Python.h> @@ -171,7 +171,7 @@ } return rValue; } - if (m_debugFlag) cerr << DEAFULT_RETURN << endl; + if (m_debugFlag) cerr << DEFAULT_RETURN << endl; return rValue; } @@ -182,7 +182,7 @@ RET rValue = RET(); if (m_debugFlag) cerr << DEBUG_NAME << endl; if (!PyObject_HasAttrString(m_pyInstance,method)) { - if (m_debugFlag) cerr << DEAFULT_RETURN << endl; + if (m_debugFlag) cerr << DEFAULT_RETURN << endl; return rValue; } @@ -248,7 +248,7 @@ RET rValue = RET(); if (m_debugFlag) cerr << DEBUG_NAME << endl; if (!PyObject_HasAttrString(m_pyInstance,method)) { - if (m_debugFlag) cerr << DEAFULT_RETURN << endl; + if (m_debugFlag) cerr << DEFAULT_RETURN << endl; return rValue; } @@ -320,7 +320,7 @@ RET rValue = RET(); if (m_debugFlag) cerr << DEBUG_NAME << endl; if (!PyObject_HasAttrString(m_pyInstance,method)) { - if (m_debugFlag) cerr << DEAFULT_RETURN << endl; + if (m_debugFlag) cerr << DEFAULT_RETURN << endl; return rValue; }