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 #if 1
00027
00028 #include <hiker/types.h>
00029 #include <hiker/sysclass.h>
00030 #include <hiker/config_defines.h>
00031 #define ALP_TRACE ALP_TRACE_ON
00032 #include <hiker/traces.h>
00033
00034 #define ALP_TMTL(str, ...) ALP_TM(TL(ALP_CLASS_BUNDLE, "%s:%d: %s(): " str, __FILE__, __LINE__, __PRETTY_FUNCTION__, ## __VA_ARGS__))
00035 #define ALP_TMT(str, ...) ALP_TM(T(ALP_CLASS_BUNDLE, "%s:%d: %s(): " str, __FILE__, __LINE__, __PRETTY_FUNCTION__, ## __VA_ARGS__))
00036 #define ALP_TMB(str, ...) ALP_TM(B(ALP_CLASS_BUNDLE, "%s:%d %s(): " str, __FILE__, __LINE__, __PRETTY_FUNCTION__, ## __VA_ARGS__))
00037
00038 #else
00039
00040 #include <stdio.h>
00041 #define ALP_TMTL(str, ...) fprintf(stderr, "%s(): " str, __PRETTY_FUNCTION__, ## __VA_ARGS__)
00042 #define ALP_TMT(str, ...) fprintf(stderr, "%s(): " str, __PRETTY_FUNCTION__, ## __VA_ARGS__)
00043 #define ALP_TMB(str, ...) fprintf(stderr, "%s(): " str, __PRETTY_FUNCTION__, ## __VA_ARGS__)
00044
00045 #endif