From 45fad878d7fd2e7bff78e677c34ca59fe24b7e94 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Fri, 10 Sep 2010 18:46:00 +0000 Subject: 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 --- HACKING | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 HACKING (limited to 'HACKING') 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) -- cgit v1.2.3