diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2017-03-10 04:07:39 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2017-03-10 04:13:17 +0100 |
commit | a78c959cb55259054ca37ef6a70aef2f6f396591 (patch) | |
tree | 68b9c35778f48de1be2e795d5e5fe6e87a36c28c /src/ratpoison.h | |
parent | a92754b604b31ca578a8c67ff864e3cd8f4f45da (diff) | |
download | ratpoison-a78c959cb55259054ca37ef6a70aef2f6f396591.zip |
Print a warning if a deprecated command is used.
Diffstat (limited to 'src/ratpoison.h')
-rw-r--r-- | src/ratpoison.h | 7 |
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 { \ |