libcm is a C development framework with an emphasis on audio signal processing applications.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

cmMain.c 722B

123456789101112131415161718192021222324252627282930313233
  1. #include "cmGlobal.h"
  2. #include "cmRpt.h"
  3. #include "cmMem.h"
  4. #include "cmMallocDebug.h"
  5. #include "cmLinkedHeap.h"
  6. void print(void* cmRptUserPtr, const char* text)
  7. { printf(text); }
  8. int main(int argc, char* argv[] )
  9. {
  10. // initialize the heap check library
  11. bool memDebugFl = true;
  12. unsigned memPadByteCnt = memDebugFl ? 8 : 0;
  13. unsigned memAlignByteCnt = 16;
  14. unsigned memFlags = memDebugFl ? kTrackMmFl | kDeferFreeMmFl | kFillUninitMmFl : 0;
  15. cmRpt_t rpt;
  16. cmRptSetup(&rpt,print,print,NULL);
  17. //cmMdTest(&rpt);
  18. //return 0;
  19. cmMdInitialize( memPadByteCnt, memAlignByteCnt, memFlags, &rpt );
  20. cmLHeapTest();
  21. cmMdReport();
  22. cmMdFinalize();
  23. return 0;
  24. }