3 #define GtkObject_val(obj) ((GtkObject*)Field(obj,1))
4 value Val_GtkObject (GtkObject *w);
5 value Val_GtkObject_sink (GtkObject *w);
6 #define Val_GtkAny(w) Val_GtkObject((GtkObject*)w)
7 #define Val_GtkAny_sink(w) Val_GtkObject_sink((GtkObject*)w)
8 #define Val_GtkWidget Val_GtkAny
9 #define Val_GtkWidget_sink Val_GtkAny_sink
11 #ifdef GTK_NO_CHECK_CASTS
12 #define check_cast(f,v) f(Pointer_val(v))
14 #define check_cast(f,v) (Pointer_val(v) == NULL ? NULL : f(Pointer_val(v)))