00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef CEYLAN_LOG_LIGHT_H_
00028 #define CEYLAN_LOG_LIGHT_H_
00029
00030
00031
00032
00033
00034
00035
00036
00037 #ifdef CEYLAN_USES_CONFIG_H
00038 #include "CeylanConfig.h"
00039 #endif // CEYLAN_USES_CONFIG_H
00040
00041
00042
00049 #if CEYLAN_DEBUG_LOG
00050
00051
00052 #if CEYLAN_ARCH_NINTENDO_DS
00053
00054
00055 #ifdef CEYLAN_RUNS_ON_ARM7
00056
00057
00058 #define CEYLAN_LOG(messageString) ;
00059
00060 #else // CEYLAN_RUNS_ON_ARM7
00061
00062
00063 #include <stdio.h>
00064
00065 #define CEYLAN_LOG(messageString) ::iprintf( "[Debug] %s\n", ((messageString).c_str()) )
00066
00067
00068 #endif // CEYLAN_RUNS_ON_ARM7
00069
00070
00071 #else // CEYLAN_ARCH_NINTENDO_DS
00072
00073
00074 #include <iostream>
00075
00076 #define CEYLAN_LOG(message) std::cerr << "[LogLight] " << message << std::endl << std::flush
00077
00078 #endif // CEYLAN_ARCH_NINTENDO_DS
00079
00080
00081 #else // CEYLAN_DEBUG_LOG
00082
00083 #define CEYLAN_LOG(message)
00084
00085 #endif // CEYLAN_DEBUG_LOG
00086
00087
00088
00089 #endif // CEYLAN_LOG_LIGHT_H_
00090