about summary refs log tree commit homepage
path: root/ext/unicorn/http11/ext_help.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-04-21 11:14:47 -0700
committerEric Wong <normalperson@yhbt.net>2009-04-21 11:16:30 -0700
commitcd0c49fbc22aa4b13f8c11917d8fd01e9c31eb2e (patch)
treefddd2baae915caab8d590249d80f02de414113ef /ext/unicorn/http11/ext_help.h
parent44d731cebec9c95e3a5cfc1fe7b7aeafcb3fe3b4 (diff)
downloadunicorn-cd0c49fbc22aa4b13f8c11917d8fd01e9c31eb2e.tar.gz
I don't see the point of using a macro here as it's never called
in a hot path.  It's a very minor size reduction in the binary,
but also makes the rest of the code less noisy/screamy.
Diffstat (limited to 'ext/unicorn/http11/ext_help.h')
-rw-r--r--ext/unicorn/http11/ext_help.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/ext/unicorn/http11/ext_help.h b/ext/unicorn/http11/ext_help.h
index 08c0e1e..17f7b01 100644
--- a/ext/unicorn/http11/ext_help.h
+++ b/ext/unicorn/http11/ext_help.h
@@ -1,9 +1,6 @@
 #ifndef ext_help_h
 #define ext_help_h
 
-#define RAISE_NOT_NULL(T) if(T == NULL) rb_raise(rb_eArgError, "NULL found for " # T " when shouldn't be.");
-#define DATA_GET(from,type,name) Data_Get_Struct(from,type,name); RAISE_NOT_NULL(name);
-#define REQUIRE_TYPE(V, T) if(TYPE(V) != T) rb_raise(rb_eTypeError, "Wrong argument type for " # V " required " # T);
 #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
 
 #ifdef DEBUG