📄 mymalloc.cpp
字号:
/****************************************************************************
* mymalloc.cpp - malloc wrapping functions with logging
*
* (c) Copyright 2000 Sabarasa Entertainment
* For internal use only.
****************************************************************************/
#include <malloc.h>
#include "fplog.h"
void *
mymalloc( size_t size, char * string )
{
void * lpRet;
lpRet = malloc( size );
fplog( "+ %s %d %d\n", string, lpRet, size );
return lpRet;
}
void
myfree( void *a, char * string )
{
free( a );
fplog( "- %s %d\n", string, a );
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -