chore(util): permit arbitrary return values in unimplemented macro

This commit is contained in:
fallenoak authored and GitHub committed 2023-02-21 08:00:56 -06:00
1 parent 0b30174088
commit a3a12c23a2
23 files changed
+519 -524

No files matched your search

+3 -8
View File
@@ -3,14 +3,9 @@
#include <cstdio>
#define WHOA_UNIMPLEMENTED() \
#define WHOA_UNIMPLEMENTED(...) \
fprintf(stderr, "Function not yet implemented: %s in %s (line %i)\n", __FUNCTION__, __FILE__, __LINE__); \
return 0; \
void(0)
#define WHOA_UNIMPLEMENTED_VOID() \
fprintf(stderr, "Function not yet implemented: %s in %s (line %i)\n", __FUNCTION__, __FILE__, __LINE__); \
return; \
void(0)
return __VA_ARGS__; \
(void)0
#endif