|what the sharp sign in macro mean?
|Page 1 of 1|
|Author:||ggodw000 [ Mon Sep 16, 2019 2:44 pm ]|
|Post subject:||what the sharp sign in macro mean?|
I came accross following defs, what are the meaning of these two sharp sign toward the end of define macro statement?
SW_DEFINE_HANDLE - macro name
object - parameters passed to macro
object##_T - ##???
#define SW_DEFINE_HANDLE(object) typedef struct object##_T* object;
Now I see usages like:
|Author:||Octocontrabass [ Mon Sep 16, 2019 3:29 pm ]|
|Post subject:||Re: what the sharp sign in macro mean?|
That's the token concatenation operator.
|Page 1 of 1||All times are UTC - 6 hours|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group