I have a function for allocating memory, which has a default argument for alignment...
void* symalloc(int numbytes, int alignment=32)
I want to get file/line numbers passed in from the call location. So, I changed it to this...
void* _symalloc(int numbytes, int alignment, const char* file, int line);
#define symalloc(numbytes, alignment) _symalloc(numbytes, alignment, __FILE__, __LINE)
But now the problem is all the callers which were not passing in alignment are broken, and there are hundreds of these.
Is there some way to have this support either being passed alignment or not, and supply the file/line in either case?