diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-07-05 15:46:52 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-07-15 01:17:39 -0700 |
commit | a0f2c4514e969d0a127227201cbdb8e57f71df63 (patch) | |
tree | b88fef09c90f2df707c703dddecad27ab46aed77 /ext/unicorn_http/ext_help.h | |
parent | d3dd9cd839b85d92e2080ba10ed38c58d96a6e9d (diff) | |
download | unicorn-a0f2c4514e969d0a127227201cbdb8e57f71df63.tar.gz |
Rename unicorn/http11 => unicorn_http
We couldn't do proper namespacing for the C module so there was a potential conflict with Init_http11() in Mongrel. This was needed because Mongrel's HTTP parser could be used in some applications and we may be unfortunate enough need to support them.
Diffstat (limited to 'ext/unicorn_http/ext_help.h')
-rw-r--r-- | ext/unicorn_http/ext_help.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/unicorn_http/ext_help.h b/ext/unicorn_http/ext_help.h new file mode 100644 index 0000000..17f7b01 --- /dev/null +++ b/ext/unicorn_http/ext_help.h @@ -0,0 +1,12 @@ +#ifndef ext_help_h +#define ext_help_h + +#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) + +#ifdef DEBUG +#define TRACE() fprintf(stderr, "> %s:%d:%s\n", __FILE__, __LINE__, __FUNCTION__) +#else +#define TRACE() +#endif + +#endif |