|
楼主 |
发表于 2010-11-16 18:26:34
|
显示全部楼层
回复【9楼】theophilus
那个是gcc编译器扩展的addressable labels, realview armcc好像也支持,其它编译器的不要管,不支持的。
http://gcc.gnu.org/onlinedocs/gcc/labels-as-values.html
http://www.keil.com/support/man/docs/armccref/armccref_ch03s07s12.htm
lc_label是个宏,定义为
#define lc_concat2(s1, s2) s1##s2
#define lc_concat(s1, s2) lc_concat2(s1, s2)
进行的是token concatenation
比如:
lc_concat(lc_label, __line__);
就是比如当前行数是1234
合并成
lc_label1234
-----------------------------------------------------------------------
谢谢了,那可以吧 LC_LABEL看成一个字符串就可以是把 |
|