memory.h

来自「著名物理引擎Hawk的源代码」· C头文件 代码 · 共 29 行

H
29
字号
/* memory.h, HAWK game engine
 *
 * Copyright 1997-1998 by Phil Frisbie, Jr.
 * for Hawk Software
 *
 * All hardware specific code goes here
 *
 */

#ifndef MEMORY_H
#define MEMORY_H

#ifdef __cplusplus
extern "C" {
#endif

BOOL			initMemory(void);	/* Init memory */
void			*TempMalloc(int);	/* Temp malloc */
void			TempFree(void *);	/* Temp free */
void			*TagMalloc(int size, int tag); /* Tagged malloc */
void			FreeTags(int tag);	/* Free all tags */
void			memShutdown(void);	/* Shutdown and free all memory */

#ifdef __cplusplus
}
#endif

#endif /* MEMORY_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?