|
|
|
|
|
by scott_s
5268 days ago
|
|
Hmm. The question "what is the size of memory that x points to?" is cheap to figure out, because free needs to do it anyway. You couldn't use a macro to do it - it would need to access the internal data structures of the allocator - but it's easy to do. The other questions could be macros that called the first function. What are the use cases for these functions? What bugs would they prevent? |
|