00001
00006 #ifndef AUXF_H
00007 #define AUXF_H
00008
00009 #ifdef __cplusplus
00010 extern "C" {
00011 #endif
00012
00013 #ifdef WIN32
00014 char *strdup(const char *s);
00015 #else
00016 #include <string.h>
00017 #endif
00018
00022 void *xmalloc(int size);
00023 char *xstrdup(const char *s);
00024 #ifdef __cplusplus
00025
00026 }
00027
00032 #include <string>
00033 std::string debug_backtrace();
00034 namespace annie {
00035 std::string operator+(const std::string &s, const int i);
00036 inline std::string operator+(const std::string &s, const uint i) { return s + (int) i; }
00037 }
00038
00039 #endif //C++
00040
00041 #endif //_H