Sha256: 343d64381411d9311eadbf39d6e6bd2b5ff03b614452e91d55febdaa19ca2896

Contents?: true

Size: 536 Bytes

Versions: 54

Compression:

Stored size: 536 Bytes

Contents

#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
#define TRACE()  fprintf(stderr, "> %s:%d:%s\n", __FILE__, __LINE__, __FUNCTION__)
#else
#define TRACE() 
#endif

#endif

Version data entries

54 entries across 54 versions & 7 rubygems

Version Path
puma-1.1.0-java ext/puma_http11/ext_help.h
puma-1.1.0 ext/puma_http11/ext_help.h
puma-1.0.0-java ext/puma_http11/ext_help.h
puma-1.0.0 ext/puma_http11/ext_help.h
puma-0.9.5-java ext/puma_http11/ext_help.h
puma-0.9.5 ext/puma_http11/ext_help.h
puma-0.9.4-java ext/puma_http11/ext_help.h
puma-0.9.4 ext/puma_http11/ext_help.h
puma-0.9.3-java ext/puma_http11/ext_help.h
puma-0.9.3 ext/puma_http11/ext_help.h
puma-0.9.2-java ext/puma_http11/ext_help.h
puma-0.9.2 ext/puma_http11/ext_help.h
puma-0.9.1-java ext/puma_http11/ext_help.h
puma-0.9.1 ext/puma_http11/ext_help.h
puma-0.9.0-java ext/puma_http11/ext_help.h
puma-0.9.0 ext/puma_http11/ext_help.h
puma-0.8.2-java ext/puma_http11/ext_help.h
puma-0.8.2 ext/puma_http11/ext_help.h
puma-0.8.1 ext/puma_http11/ext_help.h
puma-0.8.0 ext/puma_http11/ext_help.h