mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 12:34:21 +00:00
[DOC] Move typed-data related macros
The flags for `rb_data_type_t::flags` are public constants for defining `rb_data_type_t`. The embedded data flag and mask are internal implementation detail.
This commit is contained in:
parent
d95bebe06c
commit
094145fbc1
Notes:
git
2025-12-31 09:00:12 +00:00
@ -109,14 +109,17 @@
|
||||
/** @cond INTERNAL_MACRO */
|
||||
#define RTYPEDDATA_P RTYPEDDATA_P
|
||||
#define RTYPEDDATA_TYPE RTYPEDDATA_TYPE
|
||||
#define TYPED_DATA_EMBEDDED ((VALUE)1)
|
||||
#define TYPED_DATA_PTR_MASK (~(TYPED_DATA_EMBEDDED))
|
||||
/** @endcond */
|
||||
|
||||
/**
|
||||
* Macros to see if each corresponding flag is defined.
|
||||
*/
|
||||
#define RUBY_TYPED_FREE_IMMEDIATELY RUBY_TYPED_FREE_IMMEDIATELY
|
||||
#define RUBY_TYPED_FROZEN_SHAREABLE RUBY_TYPED_FROZEN_SHAREABLE
|
||||
#define RUBY_TYPED_WB_PROTECTED RUBY_TYPED_WB_PROTECTED
|
||||
#define RUBY_TYPED_PROMOTED1 RUBY_TYPED_PROMOTED1
|
||||
/** @endcond */
|
||||
|
||||
#define TYPED_DATA_EMBEDDED ((VALUE)1)
|
||||
#define TYPED_DATA_PTR_MASK (~(TYPED_DATA_EMBEDDED))
|
||||
|
||||
/**
|
||||
* @private
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user