what the sharp sign in macro mean?

Programming, for all ages and all languages.
Post Reply
ggodw000
Member
Member
Posts: 396
Joined: Wed Nov 18, 2015 3:04 pm
Location: San Jose San Francisco Bay Area
Contact:

what the sharp sign in macro mean?

Post by ggodw000 »

I came accross following defs, what are the meaning of these two sharp sign toward the end of define macro statement?

where:
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:

SW_DEFINE_HANDLE(Instance)
SW_DEFINE_HANDLE(lDevice)
SW_DEFINE_HANDLE(Queue)

Thanks.,
key takeaway after spending yrs on sw industry: big issue small because everyone jumps on it and fixes it. small issue is big since everyone ignores and it causes catastrophy later. #devilisinthedetails
Post Reply