mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-01-31 13:40:35 +00:00
avoid pointless MSVC warnings
return value in void function
This commit is contained in:
parent
85b3aed9b0
commit
ecdd6e2a8a
1 changed files with 6 additions and 4 deletions
|
@ -69,13 +69,15 @@ void fluid_time_config(void);
|
|||
#define FLUID_LE16TOH(x) GINT16_FROM_LE(x)
|
||||
|
||||
|
||||
#define fluid_return_val_if_fail(cond, val) \
|
||||
#define fluid_return_if_fail(cond) \
|
||||
if(cond) \
|
||||
; \
|
||||
else \
|
||||
return val
|
||||
|
||||
#define fluid_return_if_fail(cond) fluid_return_val_if_fail(cond, ((void)(0)))
|
||||
return
|
||||
|
||||
#define fluid_return_val_if_fail(cond, val) \
|
||||
fluid_return_if_fail(cond) (val)
|
||||
|
||||
|
||||
/*
|
||||
* Utility functions
|
||||
|
|
Loading…
Reference in a new issue