What is T_DATA?

hello
I am currently trying to understand the C source of mysql-ruby.

there is a line at mysql.c which looks like this (line 40)

#define GetHandler(obj) (Check_Type(obj, T_DATA), &(((
struct mysql*)DATA_PTR(obj))->handler))

and I do not understand what’s going on here.

what is this T_DATA

I couldn’t find anything in the pickaxe book and in README.EXT
there is only
T_DATA data

in section 1.1 Data-types

can anybody explain me, what T_DATA is good for?

thanks

markus

Markus Jais wrote:

can anybody explain me, what T_DATA is good for?

It’s for user defined data types, which are instantiated by calling the
Data_Wrap_Struct and Data_Make_Struct macros.