Sha256: d618ebc0f2e37ad800b85ed19efcc0720358bb01bdd068dda8bf38dfef391d77

Contents?: true

Size: 548 Bytes

Versions: 319

Compression:

Stored size: 548 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,name) Data_Get_Struct(from,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

319 entries across 314 versions & 23 rubygems

Version Path
puma-4.3.12-java ext/puma_http11/ext_help.h
puma-4.3.12 ext/puma_http11/ext_help.h
puma-4.3.11-java ext/puma_http11/ext_help.h
puma-4.3.11 ext/puma_http11/ext_help.h
puma-4.3.10-java ext/puma_http11/ext_help.h
puma-4.3.10 ext/puma_http11/ext_help.h
puma-4.3.9 ext/puma_http11/ext_help.h
puma-4.3.9-java ext/puma_http11/ext_help.h
logstash-output-scalyr-0.2.1.beta vendor/bundle/jruby/2.5.0/gems/puma-2.16.0-java/ext/puma_http11/ext_help.h
logstash-output-scalyr-0.2.0 vendor/bundle/jruby/2.5.0/gems/puma-2.16.0-java/ext/puma_http11/ext_help.h
logstash-output-scalyr-0.2.0.beta vendor/bundle/jruby/2.5.0/gems/puma-2.16.0-java/ext/puma_http11/ext_help.h
logstash-output-scalyr-0.1.26.beta vendor/bundle/jruby/2.5.0/gems/puma-2.16.0-java/ext/puma_http11/ext_help.h
logstash-output-scalyr-0.1.25.beta vendor/bundle/jruby/2.5.0/gems/puma-2.16.0-java/ext/puma_http11/ext_help.h
logstash-output-scalyr-0.1.24.beta vendor/bundle/jruby/2.5.0/gems/puma-2.16.0-java/ext/puma_http11/ext_help.h
logstash-output-scalyr-0.1.23.beta vendor/bundle/jruby/2.5.0/gems/puma-2.16.0-java/ext/puma_http11/ext_help.h
logstash-output-scalyr-0.1.22.beta vendor/bundle/jruby/2.5.0/gems/puma-2.16.0-java/ext/puma_http11/ext_help.h
logstash-output-scalyr-0.1.21.beta vendor/bundle/jruby/2.5.0/gems/puma-2.16.0-java/ext/puma_http11/ext_help.h
logstash-output-scalyr-0.1.20.beta vendor/bundle/jruby/2.5.0/gems/puma-2.16.0-java/ext/puma_http11/ext_help.h
logstash-output-scalyr-0.1.19.beta vendor/bundle/jruby/2.5.0/gems/puma-2.16.0-java/ext/puma_http11/ext_help.h
logstash-output-scalyr-0.1.18.beta vendor/bundle/jruby/2.5.0/gems/puma-2.16.0-java/ext/puma_http11/ext_help.h