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@45: // Licensed under the Apache License, Version 2.0 (the "License"); tomwalters@45: // you may not use this file except in compliance with the License. tomwalters@45: // You may obtain a copy of the License at tomwalters@0: // tomwalters@45: // http://www.apache.org/licenses/LICENSE-2.0 tomwalters@0: // tomwalters@45: // Unless required by applicable law or agreed to in writing, software tomwalters@45: // distributed under the License is distributed on an "AS IS" BASIS, tomwalters@45: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. tomwalters@45: // See the License for the specific language governing permissions and tomwalters@45: // limitations under the License. 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