OSDev.org https://forum.osdev.org/ |
|
what the sharp sign in macro mean? https://forum.osdev.org/viewtopic.php?f=13&t=34575 |
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? 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., |
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 http://www.phpbb.com/ |