a macro question for c language (#define)
- by Daniel
I am reading source code of hoard memory allocator, and in the file of gnuwrapper.cpp, there are the following code
#define CUSTOM_MALLOC(x) CUSTOM_PREFIX(malloc)(x)
What's the meaning of CUSTOM_PREFIX(malloc)(x)? is CUSTOM_PREFIX a function? But as a function it didn't defined anywhere. If it's variable, then how can we use variable…