Mercurial > hg > aimc
annotate src/Support/Common.cc @ 79:b4f0b6a45819
- AWS
author | tomwalters |
---|---|
date | Wed, 11 Aug 2010 23:57:25 +0000 |
parents | c5f5e9569863 |
children |
rev | line source |
---|---|
tomwalters@0 | 1 // Copyright 2006-2010, Thomas Walters, Willem van Engen |
tomwalters@0 | 2 // |
tomwalters@0 | 3 // AIM-C: A C++ implementation of the Auditory Image Model |
tomwalters@0 | 4 // http://www.acousticscale.org/AIMC |
tomwalters@0 | 5 // |
tomwalters@45 | 6 // Licensed under the Apache License, Version 2.0 (the "License"); |
tomwalters@45 | 7 // you may not use this file except in compliance with the License. |
tomwalters@45 | 8 // You may obtain a copy of the License at |
tomwalters@0 | 9 // |
tomwalters@45 | 10 // http://www.apache.org/licenses/LICENSE-2.0 |
tomwalters@0 | 11 // |
tomwalters@45 | 12 // Unless required by applicable law or agreed to in writing, software |
tomwalters@45 | 13 // distributed under the License is distributed on an "AS IS" BASIS, |
tomwalters@45 | 14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
tomwalters@45 | 15 // See the License for the specific language governing permissions and |
tomwalters@45 | 16 // limitations under the License. |
tomwalters@0 | 17 |
tomwalters@0 | 18 #include "Support/Common.h" |
tomwalters@0 | 19 |
tomwalters@0 | 20 namespace aimc { |
tomwalters@0 | 21 void LOG_ERROR(const char *sFmt, ...) { |
tomwalters@0 | 22 va_list args; |
tomwalters@0 | 23 va_start(args, sFmt); |
tomwalters@0 | 24 vfprintf(stderr, sFmt, args); |
tomwalters@0 | 25 fprintf(stderr, "\n"); |
tomwalters@0 | 26 va_end(args); |
tomwalters@0 | 27 } |
tomwalters@0 | 28 |
tomwalters@0 | 29 void LOG_INFO(const char *sFmt, ...) { |
tomwalters@0 | 30 va_list args; |
tomwalters@0 | 31 va_start(args, sFmt); |
tomwalters@0 | 32 // Just print message to console (will be lost on windows with gui) |
tomwalters@0 | 33 vprintf(sFmt, args); |
tomwalters@0 | 34 printf("\n"); |
tomwalters@0 | 35 va_end(args); |
tomwalters@0 | 36 } |
tomwalters@6 | 37 |
tomwalters@6 | 38 void LOG_INFO_NN(const char *sFmt, ...) { |
tomwalters@6 | 39 va_list args; |
tomwalters@6 | 40 va_start(args, sFmt); |
tomwalters@6 | 41 // Just print message to console (will be lost on windows with gui) |
tomwalters@6 | 42 vprintf(sFmt, args); |
tomwalters@6 | 43 va_end(args); |
tomwalters@6 | 44 } |
tomwalters@0 | 45 } // namespace aimc |