📄 auxf.h
字号:
/** * Varios auxiliary functions which are needed in almost every project .. * @author ?? * $Id: auxf.h,v 1.1 2004/06/16 10:53:30 opx Exp $ */#ifndef AUXF_H#define AUXF_H#ifdef __cplusplusextern "C" {#endif#ifdef WIN32 char *strdup(const char *s);#else#include <string.h>#endif /** * Versions throwing exceptions instead of NULL return */ void *xmalloc(int size); char *xstrdup(const char *s);#ifdef __cplusplus} //export "C"/** * backtrace support (+ demangle) * print backtrace to the logger (if supported on your platform) */#include <string>std::string debug_backtrace();namespace annie {std::string operator+(const std::string &s, const int i);inline std::string operator+(const std::string &s, const uint i) { return s + (int) i; }}#endif //C++#endif //_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -