While looking over the structure of the DikuMUD codebase i am looking at, i found this Macro definition that in itself doesnt make any sense, to me at least.
If it would be possible to get someone to explain to me what the purpose of defining this macro is and what it is doing.
I understand what the X value being passed to the PROFILE macro is, as well as how macro's work, but this one is throwing me for a loop as the Macro isnt explicitely defining the inline code to replace but instead its like it is just dumping it into the void of code.
Any explanation would be greatly appreciated. And no there is no space between PROFILE and (x), they are all one "word", per say.
If it would be possible to get someone to explain to me what the purpose of defining this macro is and what it is doing.
...
#define PROFILE(x)
...
PROFILE(extern etext();)
...
PROFILE(monstartup((int) 2, etext);)
...
I understand what the X value being passed to the PROFILE macro is, as well as how macro's work, but this one is throwing me for a loop as the Macro isnt explicitely defining the inline code to replace but instead its like it is just dumping it into the void of code.
Any explanation would be greatly appreciated. And no there is no space between PROFILE and (x), they are all one "word", per say.