
/**//*****************************************************************************
** Notice: Copyright (c) 2007 Some - All Rights Reserved
**
** create: turui
**
** Date: 2007.12.19
**
** File Name: TRSimpleGc.h
**
** Revision:
**
** Description:
**
** 简单的垃圾回收及管理
**
*****************************************************************************/
#ifndef _TRSIMPLEGC_H_
#define _TRSIMPLEGC_H_
#if defined(__cplusplus)
extern "C" ...{
#endif
#define BlockSize 2048
// 如果之前有了这些定义可以取消掉
#ifndef UINT32
#define UINT32 unsigned int
#endif
#ifndef BYTE
#define BYTE unsigned char
#endif
void * gc_malloc(UINT32 cb);
void gc_free();
#if defined(__cplusplus)
}
#endif
#endif /* _TRSIMPLEGC_H_ */
本文介绍了一个简单的垃圾回收及内存管理方案TRSimpleGc,该方案定义了内存分配和释放的基本操作,适用于需要简单内存管理和垃圾回收的应用场景。

被折叠的 条评论
为什么被折叠?



