请教一个可能大家都认为常识的小问题,CCS5.2的编译器支不支持可变参数的宏定义?
如:#define printf(fmt,args...) serial_printf(fmt ,##args)
若是不支持的话,如果我想这么实现,应该怎么做呢?
望大家不吝赐教了,小弟在这感激了。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
这个我到没有仔细研究过,你的这个定义在pc的gcc下面能编译通过么?
您这个代码是哪里的,是不是您自己写的?另外,您可以参考下compilor的文档
在我给您的文档中,你可以参考5.16.1 Extensions,同时也可以参考这个http://processors.wiki.ti.com/index.php/GCC_Extensions_in_TI_Compilers#Enabling_GCC_Language_Extensions