parenthesize to macro
This commit is contained in:
parent
1a64d45c67
commit
914cf26d6e
Notes:
git
2022-12-01 16:31:45 +00:00
@ -12,9 +12,9 @@
|
|||||||
#include "ruby/encoding.h" /* for rb_encoding */
|
#include "ruby/encoding.h" /* for rb_encoding */
|
||||||
|
|
||||||
#define rb_enc_autoload_p(enc) (!rb_enc_mbmaxlen(enc))
|
#define rb_enc_autoload_p(enc) (!rb_enc_mbmaxlen(enc))
|
||||||
#define rb_is_usascii_enc(enc) (enc) == rb_usascii_encoding()
|
#define rb_is_usascii_enc(enc) ((enc) == rb_usascii_encoding())
|
||||||
#define rb_is_ascii8bit_enc(enc) (enc) == rb_ascii8bit_encoding()
|
#define rb_is_ascii8bit_enc(enc) ((enc) == rb_ascii8bit_encoding())
|
||||||
#define rb_is_locale_enc(enc) (enc) == rb_locale_encoding()
|
#define rb_is_locale_enc(enc) ((enc) == rb_locale_encoding())
|
||||||
|
|
||||||
/* encoding.c */
|
/* encoding.c */
|
||||||
ID rb_id_encoding(void);
|
ID rb_id_encoding(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user