summaryrefslogtreecommitdiff
path: root/src/ratpoison.h
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2017-03-10 04:07:39 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2017-03-10 04:13:17 +0100
commita78c959cb55259054ca37ef6a70aef2f6f396591 (patch)
tree68b9c35778f48de1be2e795d5e5fe6e87a36c28c /src/ratpoison.h
parenta92754b604b31ca578a8c67ff864e3cd8f4f45da (diff)
downloadratpoison-a78c959cb55259054ca37ef6a70aef2f6f396591.zip
Print a warning if a deprecated command is used.
Diffstat (limited to 'src/ratpoison.h')
-rw-r--r--src/ratpoison.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ratpoison.h b/src/ratpoison.h
index 3068050..e675d54 100644
--- a/src/ratpoison.h
+++ b/src/ratpoison.h
@@ -44,6 +44,13 @@ do { \
fflush (stdout); \
} while (0)
+#define PRINT_WARNING(fmt) \
+do { \
+ PRINT_LINE (warning); \
+ printf fmt; \
+ fflush (stdout); \
+} while (0)
+
#ifdef DEBUG
#define PRINT_DEBUG(fmt) \
do { \