Fix RETURN macros

Remove trailing semicolon

Fix RETURNNULL(X) -- was not executing X at all
This commit is contained in:
Andrew Bettison 2013-11-25 12:51:13 +10:30
parent 45450386db
commit 9cdf053320

View File

@ -86,8 +86,8 @@ void dump_stack(int log_level);
fd_func_enter(__HERE__, &_this_call);
#define OUT() fd_func_exit(__HERE__, &_this_call)
#define RETURN(X) do { OUT(); return (X); } while (0);
#define RETURNNULL do { OUT(); return (NULL); } while (0);
#define RETURNVOID do { OUT(); return; } while (0);
#define RETURN(X) do { OUT(); return (X); } while (0)
#define RETURNNULL(X) do { X; OUT(); return (NULL); } while (0)
#define RETURNVOID do { OUT(); return; } while (0)
#endif // __SERVALDNA__FDQUEUE_H