mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-13 17:54:43 +03:00
chore(util): permit arbitrary return values in unimplemented macro
This commit is contained in:
1 parent
0b30174088
commit
a3a12c23a2
23 files changed
+519
-524
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user