diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-09-10 18:46:00 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-09-10 18:46:00 +0000 |
commit | 45fad878d7fd2e7bff78e677c34ca59fe24b7e94 (patch) | |
tree | 83eef0fe3c41f9db9f687e5642173d6609b89372 /HACKING | |
parent | 9f810beb5c692949a69707c72b61d8a473ed834e (diff) | |
download | qemu-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-- | HACKING | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) |