diff src/Support/Common.cc @ 6:8c859ef1fb75

- Added a basic main function to test that all the can be fitted together - Fixed an initialisation bug in ModuleFileInput that left the buffer size at zero - Added proper description strings to the input and output modules - Fixed an out-by-a-factor-of-1000 bug in the SAI memory allocation (oops) - Added LOG_INFO_NN fucnction to log without a newline. Useful for the ASCII art module chain in aimc.cc.
author tomwalters
date Thu, 18 Feb 2010 19:35:07 +0000
parents 582cbe817f2c
children c5f5e9569863
line wrap: on
line diff
--- a/src/Support/Common.cc	Thu Feb 18 16:55:40 2010 +0000
+++ b/src/Support/Common.cc	Thu Feb 18 19:35:07 2010 +0000
@@ -35,4 +35,12 @@
   printf("\n");
   va_end(args);
 }
+
+void LOG_INFO_NN(const char *sFmt, ...) {
+  va_list args;
+  va_start(args, sFmt);
+  // Just print message to console (will be lost on windows with gui)
+  vprintf(sFmt, args);
+  va_end(args);
+}
 }  // namespace aimc