summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index a0b60b5074..f20dfb02f3 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -347,8 +347,10 @@ typedef struct rb_block_struct {
VALUE proc;
} rb_block_t;
+extern const rb_data_type_t thread_data_type;
+
#define GetThreadPtr(obj, ptr) \
- GetCoreDataFromValue((obj), rb_thread_t, (ptr))
+ TypedData_Get_Struct((obj), rb_thread_t, &thread_data_type, (ptr))
enum rb_thread_status {
THREAD_TO_KILL,