+#define TYPE_REGEXP registry_getregexpclass()
+#define TYPE_IS_REGEXP(t) ((t) == registry_getregexpclass())
+
+#define TYPE_OBJECT registry_getobjectclass()
+
+#define TYPE_FUNCTION(f) memberinfo_asclass(f)
+#define TYPE_IS_FUNCTION(t) registry_isfunctionclass(t)
+
+#define TYPE_CLASS(f) registry_getclassclass(f)
+#define TYPE_IS_CLASS(t) registry_isclassclass(t)
+