mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-20 21:53:12 +00:00
Fix RETURN macros
Remove trailing semicolon Fix RETURNNULL(X) -- was not executing X at all
This commit is contained in:
parent
45450386db
commit
9cdf053320
@ -86,8 +86,8 @@ void dump_stack(int log_level);
|
|||||||
fd_func_enter(__HERE__, &_this_call);
|
fd_func_enter(__HERE__, &_this_call);
|
||||||
|
|
||||||
#define OUT() fd_func_exit(__HERE__, &_this_call)
|
#define OUT() fd_func_exit(__HERE__, &_this_call)
|
||||||
#define RETURN(X) do { OUT(); return (X); } while (0);
|
#define RETURN(X) do { OUT(); return (X); } while (0)
|
||||||
#define RETURNNULL do { OUT(); return (NULL); } while (0);
|
#define RETURNNULL(X) do { X; OUT(); return (NULL); } while (0)
|
||||||
#define RETURNVOID do { OUT(); return; } while (0);
|
#define RETURNVOID do { OUT(); return; } while (0)
|
||||||
|
|
||||||
#endif // __SERVALDNA__FDQUEUE_H
|
#endif // __SERVALDNA__FDQUEUE_H
|
||||||
|
Loading…
Reference in New Issue
Block a user