00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00017
00018 #ifndef _error_h_
00019 #define _error_h_
00020
00021 #include "jic/log/trazas.hpp"
00022 #include <iostream>
00023
00024 #ifdef DEBUG
00025
00026 #define JIC_ERROR(x) \
00027 cerr << "ERROR: " << x << " ( " << __FILE__ << ", " << __LINE__ << " )" << endl; \
00028 SUCESO("ERROR: " << x << " ( " << __FILE__ << ", " << __LINE__ << " )");
00029
00030 #else
00031
00032 #define JIC_ERROR(x) \
00033 cerr << "ERROR: " << x << endl; \
00034 SUCESO("ERROR: " << x);
00035
00036 #endif
00037
00038 #endif
00039