* [Qemu-devel] [PATCH 1/5] HACKING: add preprocessor rules
@ 2010-08-26 18:38 Blue Swirl
0 siblings, 0 replies; 2+ messages in thread
From: Blue Swirl @ 2010-08-26 18:38 UTC (permalink / raw)
To: qemu-devel
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
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)
--
1.6.2.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Qemu-devel] [PATCH 1/5] HACKING: add preprocessor rules
@ 2010-08-15 17:50 Blue Swirl
0 siblings, 0 replies; 2+ messages in thread
From: Blue Swirl @ 2010-08-15 17:50 UTC (permalink / raw)
To: qemu-devel
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
diff --git a/HACKING b/HACKING
new file mode 100644
index 0000000..e60aa48
--- /dev/null
+++ b/HACKING
@@ -0,0 +1,6 @@
+1. Preprocessor
+
+For variadic macros, stick with C99 syntax:
+
+#define DPRINTF(fmt, ...) \
+ do { printf("IRQ: " fmt, ## __VA_ARGS__); } while (0)
--
1.6.2.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-26 18:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-26 18:38 [Qemu-devel] [PATCH 1/5] HACKING: add preprocessor rules Blue Swirl
-- strict thread matches above, loose matches on Subject: below --
2010-08-15 17:50 Blue Swirl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).