Mercurial > hg > aimc
comparison 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 |
comparison
equal
deleted
inserted
replaced
5:3c782dec2fc0 | 6:8c859ef1fb75 |
---|---|
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 |