mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
chore(util): permit arbitrary return values in unimplemented macro
This commit is contained in:
parent
0b30174088
commit
a3a12c23a2
23 changed files with 519 additions and 524 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue