Ruby  2.4.2p198(2017-09-14revision59899)
ruby_missing.h
Go to the documentation of this file.
1 /*
2  * 'OpenSSL for Ruby' project
3  * Copyright (C) 2001-2003 Michal Rokos <m.rokos@sh.cvut.cz>
4  * All rights reserved.
5  */
6 /*
7  * This program is licensed under the same licence as Ruby.
8  * (See the file 'LICENCE'.)
9  */
10 #if !defined(_OSSL_RUBY_MISSING_H_)
11 #define _OSSL_RUBY_MISSING_H_
12 
13 #define rb_define_copy_func(klass, func) \
14  rb_define_method((klass), "initialize_copy", (func), 1)
15 
16 #define FPTR_TO_FD(fptr) ((fptr)->fd)
17 
18 #ifndef RB_INTEGER_TYPE_P
19 /* for Ruby 2.3 compatibility */
20 #define RB_INTEGER_TYPE_P(obj) (RB_FIXNUM_P(obj) || RB_TYPE_P(obj, T_BIGNUM))
21 #endif
22 
23 #endif /* _OSSL_RUBY_MISSING_H_ */