object: add macro to test object type

This commit is contained in:
2025-07-17 17:55:34 +01:00
parent 4690738af1
commit 92ccc5626d

View File

@@ -11,6 +11,8 @@
#define B_RV(p) (b_make_rvalue(B_OBJECT(p)))
#define B_RVT(t, p) ((t *)(b_make_rvalue(B_OBJECT(p))))
#define B_OBJECT_IS(object, type) (B_TYPEID(object) == B_OBJECT_TYPE_##type)
struct b_string;
struct b_stream;