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.0.2 ext/puma_http11/ext_help.h
puma-6.0.1-java ext/puma_http11/ext_help.h
puma-6.0.1 ext/puma_http11/ext_help.h
puma-6.0.0-java ext/puma_http11/ext_help.h
puma-6.0.0 ext/puma_http11/ext_help.h
puma-5.6.5-java ext/puma_http11/ext_help.h
puma-5.6.5 ext/puma_http11/ext_help.h
puma-5.6.4-java ext/puma_http11/ext_help.h
puma-5.6.4 ext/puma_http11/ext_help.h
puma-5.6.2-java ext/puma_http11/ext_help.h
puma-5.6.2 ext/puma_http11/ext_help.h
puma-5.6.1-java ext/puma_http11/ext_help.h
puma-5.6.1 ext/puma_http11/ext_help.h
puma-5.6.0-java ext/puma_http11/ext_help.h
puma-5.6.0 ext/puma_http11/ext_help.h
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/puma-5.5.2/ext/puma_http11/ext_help.h
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/puma-5.5.2/ext/puma_http11/ext_help.h
puma-5.5.2-java ext/puma_http11/ext_help.h
puma-5.5.2 ext/puma_http11/ext_help.h
puma-5.5.1-java ext/puma_http11/ext_help.h