object: add macro to test object type
This commit is contained in:
@@ -11,6 +11,8 @@
|
|||||||
#define B_RV(p) (b_make_rvalue(B_OBJECT(p)))
|
#define B_RV(p) (b_make_rvalue(B_OBJECT(p)))
|
||||||
#define B_RVT(t, p) ((t *)(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_string;
|
||||||
struct b_stream;
|
struct b_stream;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user