From: Blue Swirl Date: Fri, 10 Sep 2010 18:46:00 +0000 (+0000) Subject: HACKING: add preprocessor rules X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=45fad878d7fd2e7bff78e677c34ca59fe24b7e94;p=qemu.git HACKING: add preprocessor rules Add a new file, HACKING, in order to collect recurring issues with submitted patches. Start with preprocessor rules, adapted from libvirt HACKING. Signed-off-by: Blue Swirl --- diff --git a/HACKING b/HACKING new file mode 100644 index 0000000000..4211d15a06 --- /dev/null +++ b/HACKING @@ -0,0 +1,6 @@ +1. Preprocessor + +For variadic macros, stick with this C99-like syntax: + +#define DPRINTF(fmt, ...) \ + do { printf("IRQ: " fmt, ## __VA_ARGS__); } while (0)