turnip: Don't return from tu_stub funcs

Since the macros are lowercase and look like normal functions, that they
change control flow with a hidden return is surprising.
This commit is contained in:
Chad Versace 2018-11-12 14:45:47 -08:00 committed by Chia-I Wu
parent bf709dfe3f
commit c3b5eea2cc
1 changed files with 0 additions and 7 deletions

View File

@ -262,16 +262,9 @@ tu_logi_v(const char *format, va_list va);
#define tu_use_args(...) __tu_use_args(0, ##__VA_ARGS__)
static inline void __tu_use_args(int ignore, ...) {}
#define tu_stub_return(v) \
do { \
tu_finishme("stub %s", __func__); \
return (v); \
} while (0)
#define tu_stub() \
do { \
tu_finishme("stub %s", __func__); \
return; \
} while (0)
void *