annotate trunk/src/Support/Common.cc @ 706:f8e90b5d85fd tip

Delete CARFAC code from this repository. It has been moved to https://github.com/google/carfac Please email me with your github username to get access. I've also created a new mailing list to discuss CARFAC development: https://groups.google.com/forum/#!forum/carfac-dev
author ronw@google.com
date Thu, 18 Jul 2013 20:56:51 +0000
parents 30dde71d0230
children
rev   line source
tomwalters@268 1 // Copyright 2006-2010, Thomas Walters, Willem van Engen
tomwalters@268 2 //
tomwalters@268 3 // AIM-C: A C++ implementation of the Auditory Image Model
tomwalters@268 4 // http://www.acousticscale.org/AIMC
tomwalters@268 5 //
tomwalters@318 6 // Licensed under the Apache License, Version 2.0 (the "License");
tomwalters@318 7 // you may not use this file except in compliance with the License.
tomwalters@318 8 // You may obtain a copy of the License at
tomwalters@268 9 //
tomwalters@318 10 // http://www.apache.org/licenses/LICENSE-2.0
tomwalters@268 11 //
tomwalters@318 12 // Unless required by applicable law or agreed to in writing, software
tomwalters@318 13 // distributed under the License is distributed on an "AS IS" BASIS,
tomwalters@318 14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
tomwalters@318 15 // See the License for the specific language governing permissions and
tomwalters@318 16 // limitations under the License.
tomwalters@268 17
tomwalters@268 18 #include "Support/Common.h"
tomwalters@268 19
tomwalters@268 20 namespace aimc {
tomwalters@268 21 void LOG_ERROR(const char *sFmt, ...) {
tomwalters@268 22 va_list args;
tomwalters@268 23 va_start(args, sFmt);
tomwalters@268 24 vfprintf(stderr, sFmt, args);
tomwalters@268 25 fprintf(stderr, "\n");
tomwalters@268 26 va_end(args);
tomwalters@268 27 }
tomwalters@268 28
tomwalters@268 29 void LOG_INFO(const char *sFmt, ...) {
tomwalters@268 30 va_list args;
tomwalters@268 31 va_start(args, sFmt);
tomwalters@268 32 // Just print message to console (will be lost on windows with gui)
tomwalters@268 33 vprintf(sFmt, args);
tomwalters@268 34 printf("\n");
tomwalters@268 35 va_end(args);
tomwalters@268 36 }
tomwalters@278 37
tomwalters@278 38 void LOG_INFO_NN(const char *sFmt, ...) {
tomwalters@278 39 va_list args;
tomwalters@278 40 va_start(args, sFmt);
tomwalters@278 41 // Just print message to console (will be lost on windows with gui)
tomwalters@278 42 vprintf(sFmt, args);
tomwalters@278 43 va_end(args);
tomwalters@278 44 }
tomwalters@268 45 } // namespace aimc