Skip to content

Commit

Permalink
HACKING: add preprocessor rules
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
blueswirl committed Sep 10, 2010
1 parent 9f810be commit 45fad87
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions HACKING
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 45fad87

Please sign in to comment.