文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>#ifdef __cplusplus为了兼容c++

#ifdef __cplusplus为了兼容c++

时间:2010-08-09  来源:icebluechao

#pragma once
#ifdef __cplusplus
extern "C" {
#endif
void add_node_to(void **head, void *node, void *to, int before_or_after);
void move_node(void **head, void *moved, void *to, int before_or_after);
void add_node(void **head, void *node);
void del_node(void **head, void *node);
typedef int (*CMP_FUNC)(void *t1, void *t2);
void sort_list(void **head, CMP_FUNC nodcmp);
void add_node_sorted(void **head, void *node, CMP_FUNC nodcmp);

#define DECLARE_QUEUE(name, type) \
 type *__queue_##name = NULL \\##表示将变量name的值粘贴到__queue的后边
#define REFERENCE_QUEUE(name, type) \
 extern type *__queue_##name
#define QUEUE(name)     \
 ((void **)(&(__queue_##name)))
#define QUEUE_HEAD(name)   \
 (__queue_##name)
#ifdef __cplusplus
};
#endif
相关阅读 更多 +
排行榜 更多 +
开心动动脑安卓版 v1.0 手机版

开心动动脑安卓版 v1.0 手机版

休闲益智 下载
不良人破局手游下载

不良人破局手游下载

角色扮演 下载
云海之下手游下载

云海之下手游下载

角色扮演 下载