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

This commit is contained in:
fallenoak 2023-02-21 08:00:56 -06:00 committed by GitHub
parent 0b30174088
commit a3a12c23a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 519 additions and 524 deletions

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