clist.h
来自「3D游戏开发需要用到BSP树来经行场景渲染的管理。本代码包含完整的BSP及文件生」· C头文件 代码 · 共 16 行
H
16 行
#pragma once
// macros for structures that have a *next member
#define ListForEach(type, list, n) \
type *n = list; \
for(;n;n = n->next) \
#define ListClear(type, list) \
type *n = list; \
while(list) { \
type *cur = n; \
n = n->next; \
delete cur; \
} \
list = 0; \
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?