about summary refs log tree commit homepage
path: root/ext/unicorn_http/ext_help.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-09-15 01:14:18 -0700
committerEric Wong <normalperson@yhbt.net>2009-09-15 01:14:18 -0700
commit7ad9fd8b217eedd7cab2dc9e1dd5475244d16957 (patch)
tree745c92d2eb7a3d8e270636fe071d4001dc203dde /ext/unicorn_http/ext_help.h
parent3766ae735635eabafeeb73f44c2bc19e5ca180a6 (diff)
downloadunicorn-7ad9fd8b217eedd7cab2dc9e1dd5475244d16957.tar.gz
assert_frozen() should not be checking what type of
object it is, instead put an extra assertion in there
to ensure we have a string.
Diffstat (limited to 'ext/unicorn_http/ext_help.h')
-rw-r--r--ext/unicorn_http/ext_help.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/unicorn_http/ext_help.h b/ext/unicorn_http/ext_help.h
index d1b71d6..bd29cc7 100644
--- a/ext/unicorn_http/ext_help.h
+++ b/ext/unicorn_http/ext_help.h
@@ -28,7 +28,7 @@ static void rb_18_str_set_len(VALUE str, long len)
 #if defined(OBJ_FROZEN)
 #  define assert_frozen(f) assert(OBJ_FROZEN(f) && "unfrozen object")
 #else
-#  define assert_frozen(f) assert(!NIL_P(f))
+#  define assert_frozen(f) do {} while (0)
 #endif
 
 #if !defined(OFFT2NUM)