请教一个宏定义语法错误的问题!
调用宏container_of,进行编译时会出现错误:“ syntax error : missing ')' before '{' ”,请问下这个宏定义得有什么错误吗?
#define offsetof(TYPE, MEMBER) ((char*) &((TYPE *)0)->MEMBER)
#define container_of(result,ptr, type, member) ({ \
const list_head *mptr = (ptr); \
result = (type *)( (char *)mptr - offsetof(type,member) );})