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