Is there a C++ equivalent for C# null coalescing operator? I am doing too many null checks in my code. So was looking for a way to reduce the amount of null code.
How about this?
#define IFNULL(a,b) ((a) == null ? (b) : (a))