tomwalters@0: // Copyright 2006-2010, Thomas Walters, Willem van Engen tomwalters@0: // tomwalters@0: // AIM-C: A C++ implementation of the Auditory Image Model tomwalters@0: // http://www.acousticscale.org/AIMC tomwalters@0: // tomwalters@0: // This program is free software: you can redistribute it and/or modify tomwalters@0: // it under the terms of the GNU General Public License as published by tomwalters@0: // the Free Software Foundation, either version 3 of the License, or tomwalters@0: // (at your option) any later version. tomwalters@0: // tomwalters@0: // This program is distributed in the hope that it will be useful, tomwalters@0: // but WITHOUT ANY WARRANTY; without even the implied warranty of tomwalters@0: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the tomwalters@0: // GNU General Public License for more details. tomwalters@0: // tomwalters@0: // You should have received a copy of the GNU General Public License tomwalters@0: // along with this program. If not, see . tomwalters@0: tomwalters@0: #include "Support/Common.h" tomwalters@0: tomwalters@0: namespace aimc { tomwalters@0: void LOG_ERROR(const char *sFmt, ...) { tomwalters@0: va_list args; tomwalters@0: va_start(args, sFmt); tomwalters@0: vfprintf(stderr, sFmt, args); tomwalters@0: fprintf(stderr, "\n"); tomwalters@0: va_end(args); tomwalters@0: } tomwalters@0: tomwalters@0: void LOG_INFO(const char *sFmt, ...) { tomwalters@0: va_list args; tomwalters@0: va_start(args, sFmt); tomwalters@0: // Just print message to console (will be lost on windows with gui) tomwalters@0: vprintf(sFmt, args); tomwalters@0: printf("\n"); tomwalters@0: va_end(args); tomwalters@0: } tomwalters@6: tomwalters@6: void LOG_INFO_NN(const char *sFmt, ...) { tomwalters@6: va_list args; tomwalters@6: va_start(args, sFmt); tomwalters@6: // Just print message to console (will be lost on windows with gui) tomwalters@6: vprintf(sFmt, args); tomwalters@6: va_end(args); tomwalters@6: } tomwalters@0: } // namespace aimc