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.,
what the sharp sign in macro mean?
-
- 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?
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
-
- Member
- Posts: 5512
- Joined: Mon Mar 25, 2013 7:01 pm