Ruby: ext/openssl/ruby_missing.h Source File

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

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/* Ruby 2.4 */
14#ifndef RB_INTEGER_TYPE_P
15# define RB_INTEGER_TYPE_P(obj) (RB_FIXNUM_P(obj) || RB_TYPE_P(obj, T_BIGNUM))
16#endif
17
18/* Ruby 2.5 */
19#ifndef ST2FIX
20# define RB_ST2FIX(h) LONG2FIX((long)(h))
21# define ST2FIX(h) RB_ST2FIX(h)
22#endif
23
24#endif /* _OSSL_RUBY_MISSING_H_ */