summaryrefslogtreecommitdiffstats
path: root/HACKING
diff options
context:
space:
mode:
authorBlue Swirl2010-09-10 20:46:00 +0200
committerBlue Swirl2010-09-10 20:46:00 +0200
commit45fad878d7fd2e7bff78e677c34ca59fe24b7e94 (patch)
tree83eef0fe3c41f9db9f687e5642173d6609b89372 /HACKING
parentvmware_vga: Replace the few tab-indents with spaces (clean-up). (diff)
downloadqemu-45fad878d7fd2e7bff78e677c34ca59fe24b7e94.tar.gz
qemu-45fad878d7fd2e7bff78e677c34ca59fe24b7e94.tar.xz
qemu-45fad878d7fd2e7bff78e677c34ca59fe24b7e94.zip
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 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)