How to avoid following error:-
error: expected primary-expression before "__attribute__"
Code:
#defin开发者_如何学Pythone A(name) __attribute__(name)
If i use this macro as A(name) in my code, I am getting error as expected primary-expression before "__attribute__"
Try:
#define A(name) __attribute__((name))
Since there is no code, I can't say if you are using it properly.
精彩评论