
C语法
文章平均质量分 71
jmhgg88
这个作者很懒,什么都没留下…
展开
-
g_main_loop 简单loop创建及使用
转自:http://blog.youkuaiyun.com/liluvu/article/details/5577155////////GMainLoop -> GMainContext -> {GSource1, GSource2, GSource3......}////#include #include #include GMainLoop* loop;gboolean cal转载 2012-05-29 23:48:00 · 4030 阅读 · 0 评论 -
#define中的 #与##
#define GPEBLT_FUNCNAME(basename) (SCODE (GPE::*)(struct GPEBltParms *))&GPE::##basename 在#define中,标准只定义了#和##两种操作。#用来把参数转换成字符串,##则用来连接两个前后两个参数,把它们变成一个字符串。 #include stdio.h> #define past转载 2012-05-26 20:56:52 · 361 阅读 · 0 评论