|
@@ -20,17 +20,20 @@ namespace igl
|
|
|
|
|
|
#include <string>
|
|
|
// http://channel9.msdn.com/forums/techoff/254707-wrapping-printf-in-c/
|
|
|
+#ifdef VERBOSE
|
|
|
inline int igl::verbose(const char * msg,...)
|
|
|
{
|
|
|
-#ifdef VERBOSE
|
|
|
va_list argList;
|
|
|
va_start(argList, msg);
|
|
|
int count = vprintf(msg, argList);
|
|
|
va_end(argList);
|
|
|
return count;
|
|
|
+}
|
|
|
#else
|
|
|
+inline int igl::verbose(const char * /*msg*/,...)
|
|
|
+{
|
|
|
return 0;
|
|
|
-#endif
|
|
|
}
|
|
|
+#endif
|
|
|
|
|
|
#endif
|