summaryrefslogtreecommitdiff
path: root/src/smi.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/smi.h')
-rw-r--r--src/smi.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/smi.h b/src/smi.h
index 2ff687d..185606f 100644
--- a/src/smi.h
+++ b/src/smi.h
@@ -291,20 +291,17 @@ extern int smi_indent;
# define VERBLEV 1
# define ENTER() xf86ErrorFVerb(VERBLEV, "%*c %s\n",\
smi_indent++, '>', __FUNCTION__)
-# define LEAVE() xf86ErrorFVerb(VERBLEV, "%*c %s\n",\
- --smi_indent, '<', __FUNCTION__)
-# define RETURN(value) \
+# define LEAVE(value) \
do { \
xf86ErrorFVerb(VERBLEV, "%*c %s\n", \
--smi_indent, '<', __FUNCTION__); \
- return (value); \
+ return __VA_ARGS__; \
} while (0)
# define DEBUG(...) xf86ErrorFVerb(VERBLEV, __VA_ARGS__)
#else
# define VERBLEV 4
# define ENTER() /**/
-# define LEAVE() /**/
-# define RETURN(value) return (value)
+# define LEAVE(...) return __VA_ARGS__
# define DEBUG(...) /**/
#endif