A library for a decentralised peer-to-peer chat over IPv6 only.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617181920
  1. #ifdef LC6_DEBUG
  2. #ifndef LC6_DEBUG_H
  3. #define LC6_DEBUG_H
  4. // DO NOT include the common.h here.
  5. // because we're overriding functions
  6. // #include "../inc/lc6_common.h"
  7. void* lc6debug_malloc(size_t, char *, const char*, int);
  8. void* lc6debug_realloc(void *ptr, size_t, char *, const char*, int);
  9. void lc6debug_free(void *ptr, char *, const char*, int);
  10. #define malloc(x) lc6debug_malloc(x, __FILE__, __func__, __LINE__)
  11. #define realloc(x,y) lc6debug_realloc(x, y, __FILE__, __func__, __LINE__)
  12. #define free(x) lc6debug_free(x, __FILE__, __func__, __LINE__)
  13. #endif
  14. #endif