comparison trunk/src/Support/Common.cc @ 278:5b8b9ea1218a

- 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 e14c70d1b171
children 30dde71d0230
comparison
equal deleted inserted replaced
277:6b4921704eb1 278:5b8b9ea1218a
33 // Just print message to console (will be lost on windows with gui) 33 // Just print message to console (will be lost on windows with gui)
34 vprintf(sFmt, args); 34 vprintf(sFmt, args);
35 printf("\n"); 35 printf("\n");
36 va_end(args); 36 va_end(args);
37 } 37 }
38
39 void LOG_INFO_NN(const char *sFmt, ...) {
40 va_list args;
41 va_start(args, sFmt);
42 // Just print message to console (will be lost on windows with gui)
43 vprintf(sFmt, args);
44 va_end(args);
45 }
38 } // namespace aimc 46 } // namespace aimc