aboutsummaryrefslogtreecommitdiff
path: root/HACKING
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-09-10 18:46:00 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-09-10 18:46:00 +0000
commit45fad878d7fd2e7bff78e677c34ca59fe24b7e94 (patch)
tree83eef0fe3c41f9db9f687e5642173d6609b89372 /HACKING
parent9f810beb5c692949a69707c72b61d8a473ed834e (diff)
downloadqemu-45fad878d7fd2e7bff78e677c34ca59fe24b7e94.zip
qemu-45fad878d7fd2e7bff78e677c34ca59fe24b7e94.tar.gz
qemu-45fad878d7fd2e7bff78e677c34ca59fe24b7e94.tar.bz2
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 <blauwirbel@gmail.com>
Diffstat (limited to 'HACKING')
-rw-r--r--HACKING6
1 files changed, 6 insertions, 0 deletions
diff --git a/HACKING b/HACKING
new file mode 100644
index 0000000..4211d15
--- /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)