Sha256: 87d0f887c58a882e9f3c98ce34b7c156651024c3f14f5e17f63b0062541eca02

Contents?: true

Size: 573 Bytes

Versions: 91

Compression:

Stored size: 573 Bytes

Contents

#ifndef ext_help_h
#define ext_help_h

#define RAISE_NOT_NULL(T) if(T == NULL) rb_raise(rb_eArgError, "%s", "NULL found for " # T " when shouldn't be.");
#define DATA_GET(from,type,data_type,name) TypedData_Get_Struct(from,type,data_type,name); RAISE_NOT_NULL(name);
#define REQUIRE_TYPE(V, T) if(TYPE(V) != T) rb_raise(rb_eTypeError, "%s", "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

91 entries across 88 versions & 8 rubygems

Version Path
puma-6.6.0-java ext/puma_http11/ext_help.h
puma-6.6.0 ext/puma_http11/ext_help.h
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/puma-6.5.0/ext/puma_http11/ext_help.h
puma-6.5.0-java ext/puma_http11/ext_help.h
puma-6.5.0 ext/puma_http11/ext_help.h
jun-puma-1.0.1-java ext/puma_http11/ext_help.h
jun-puma-1.0.0-java ext/puma_http11/ext_help.h
puma-5.6.9-java ext/puma_http11/ext_help.h
puma-6.4.3-java ext/puma_http11/ext_help.h
puma-6.4.3 ext/puma_http11/ext_help.h
puma-5.6.9 ext/puma_http11/ext_help.h
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/puma-5.6.8/ext/puma_http11/ext_help.h
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/puma-6.4.2/ext/puma_http11/ext_help.h
puma-5.6.8-java ext/puma_http11/ext_help.h
puma-5.6.8 ext/puma_http11/ext_help.h
puma-6.4.2-java ext/puma_http11/ext_help.h
puma-6.4.2 ext/puma_http11/ext_help.h
puma-6.4.1-java ext/puma_http11/ext_help.h
puma-6.4.1 ext/puma_http11/ext_help.h
puma-6.4.0-java ext/puma_http11/ext_help.h