Sha256: 849e0355e4253bbae69ee3712f9c9fd90a2555e8cf77cdaca20d87bd3beb3e05

Contents?: true

Size: 538 Bytes

Versions: 3

Compression:

Stored size: 538 Bytes

Contents

#ifndef FASTER_SUPPORT_H
#define FASTER_SUPPORT_H 1

#include "ruby.h"
#include "ruby/encoding.h"
#include "ruby/re.h"
#include "ruby/version.h"

#define STR_ENC_GET(str) rb_enc_from_index(ENCODING_GET(str))

#ifndef RUBY_API_VERSION_CODE
#define RUBY_BEFORE_2_2 1
#else
#define RUBY_BEFORE_2_2 (RUBY_API_VERSION_CODE < 20200)
#endif /* ifndef RUBY_API_VERSION_CODE */

#define RB_NEGATE(VAL) (VAL == Qtrue ? Qfalse : Qtrue)

void Init_str_blank(void);
void Init_ary_blank(void);
void Init_obj_blank(void);

#endif /* FASTER_SUPPORT_H */

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
faster_support-0.1.2 ext/faster_support/faster_support.h
faster_support-0.1.1 ext/faster_support/faster_support.h
faster_support-0.1.0 ext/faster_support/faster_support.h