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@318: // Licensed under the Apache License, Version 2.0 (the "License"); tomwalters@318: // you may not use this file except in compliance with the License. tomwalters@318: // You may obtain a copy of the License at tomwalters@268: // tomwalters@318: // http://www.apache.org/licenses/LICENSE-2.0 tomwalters@268: // tomwalters@318: // Unless required by applicable law or agreed to in writing, software tomwalters@318: // distributed under the License is distributed on an "AS IS" BASIS, tomwalters@318: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. tomwalters@318: // See the License for the specific language governing permissions and tomwalters@318: // limitations under the License. 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@278: tomwalters@278: void LOG_INFO_NN(const char *sFmt, ...) { tomwalters@278: va_list args; tomwalters@278: va_start(args, sFmt); tomwalters@278: // Just print message to console (will be lost on windows with gui) tomwalters@278: vprintf(sFmt, args); tomwalters@278: va_end(args); tomwalters@278: } tomwalters@268: } // namespace aimc