diff options
author | Blue Swirl | 2010-09-10 20:46:00 +0200 |
---|---|---|
committer | Blue Swirl | 2010-09-10 20:46:00 +0200 |
commit | 45fad878d7fd2e7bff78e677c34ca59fe24b7e94 (patch) | |
tree | 83eef0fe3c41f9db9f687e5642173d6609b89372 /HACKING | |
parent | vmware_vga: Replace the few tab-indents with spaces (clean-up). (diff) | |
download | qemu-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-- | HACKING | 6 |
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) |