summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beemitter.h
diff options
context:
space:
mode:
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>2007-05-05 21:47:50 +0200
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>2007-05-05 21:47:50 +0200
commit92c4badad948858bc07f029a16acf89070cdd996 (patch)
treee1a856cd04cb00f890dd404c6dec3953be01285f /ir/be/beemitter.h
parentf0d10511f773d3acd3c7e9ed9afe558c9206a29c (diff)
made be_emit_cstring() 'statement like'
[r13656]
Diffstat (limited to 'ir/be/beemitter.h')
-rw-r--r--ir/be/beemitter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/beemitter.h b/ir/be/beemitter.h
index d614ac1..6080d81 100644
--- a/ir/be/beemitter.h
+++ b/ir/be/beemitter.h
@@ -84,7 +84,7 @@ static INLINE void be_emit_string(be_emit_env_t *env, const char *str)
* @param env the emitter environment
* @param str the null-terminated string constant
*/
-#define be_emit_cstring(env, str) { be_emit_string_len(env, str, sizeof(str)-1); }
+#define be_emit_cstring(env, str) do { be_emit_string_len(env, str, sizeof(str)-1); } while(0)
/**
* Initializes an emitter environment.