Sha256: 413946111465aab996268faffc1e2d93fabf420d6258eeea8a47dca5cd988cbe

Contents?: true

Size: 650 Bytes

Versions: 40

Compression:

Stored size: 650 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);

/* for compatibility with Ruby 1.8.5, which doesn't declare RSTRING_PTR */
#ifndef RSTRING_PTR
#define RSTRING_PTR(s) (RSTRING(s)->ptr)
#endif

/* for compatibility with Ruby 1.8.5, which doesn't declare RSTRING_LEN */
#ifndef RSTRING_LEN
#define RSTRING_LEN(s) (RSTRING(s)->len)
#endif

#endif

Version data entries

40 entries across 40 versions & 9 rubygems

Version Path
fluent-plugin-nuopenlineage-light-0.1.0 vendor/bundle/ruby/3.3.0/gems/http_parser.rb-0.8.0/ext/ruby_http_parser/ext_help.h
fluent-plugin-openlineage-light-0.1.4 vendor/bundle/ruby/3.3.0/gems/http_parser.rb-0.8.0/ext/ruby_http_parser/ext_help.h
fluent-plugin-openlineage-light-0.1.3 vendor/bundle/ruby/3.3.0/gems/http_parser.rb-0.8.0/ext/ruby_http_parser/ext_help.h
fluent-plugin-openlineage-0.1.0 vendor/bundle/ruby/3.3.0/gems/http_parser.rb-0.8.0/ext/ruby_http_parser/ext_help.h
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/http_parser.rb-0.8.0/ext/ruby_http_parser/ext_help.h
http_parser.rb-0.8.0 ext/ruby_http_parser/ext_help.h
http_parser.rb-0.7.0 ext/ruby_http_parser/ext_help.h
midori_http_parser-0.6.2 ext/ruby_http_parser/ext_help.h
fluent-plugin-detect-memb-exceptions-0.0.2 vendor/bundle/ruby/2.0.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser/ext_help.h
fluent-plugin-detect-memb-exceptions-0.0.1 vendor/bundle/ruby/2.0.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser/ext_help.h
midori_http_parser-0.6.1.3 ext/ruby_http_parser/ext_help.h
midori_http_parser-0.6.1.3-java ext/ruby_http_parser/ext_help.h
midori_http_parser-0.6.1.2-java ext/ruby_http_parser/ext_help.h
midori_http_parser-0.6.1.2 ext/ruby_http_parser/ext_help.h
midori_http_parser-0.6.1.1-java ext/ruby_http_parser/ext_help.h
midori_http_parser-0.6.1.1 ext/ruby_http_parser/ext_help.h
midori_http_parser-0.6.1 ext/ruby_http_parser/ext_help.h
http_parser.rb-0.6.0-java ext/ruby_http_parser/ext_help.h
http_parser.rb-0.6.0 ext/ruby_http_parser/ext_help.h
http_parser.rb-0.6.0.beta.2-java ext/ruby_http_parser/ext_help.h