Patchwork [1/5] HACKING: add preprocessor rules

login
register
mail settings
Submitter Blue Swirl
Date Aug. 26, 2010, 6:38 p.m.
Message ID <AANLkTiniJWsf8DMf-WNAkG576XOX6i-Lu_vLugK3S7iE@mail.gmail.com>
Download mbox | patch
Permalink /patch/62797/
State New
Headers show

Comments

Blue Swirl - Aug. 26, 2010, 6:38 p.m.
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>
---
 HACKING |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
 create mode 100644 HACKING

Patch

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)