fix: brackets around value macro definition

main
Sara 2024-09-12 21:32:14 +02:00
parent a72494b52a
commit eab5961989
1 changed files with 1 additions and 1 deletions

View File

@ -10,6 +10,6 @@ extern __Typeclass __Type##_as_##__Typeclass(__Type*);
#define new(T) (malloc(sizeof(T))) #define new(T) (malloc(sizeof(T)))
#define new_as(T, TC) (T##_as_##TC(new(T))) #define new_as(T, TC) (T##_as_##TC(new(T)))
#define tc_is_null(SELF) (SELF.data == NULL && SELF.tc == NULL) #define tc_is_null(SELF) (SELF.data == NULL && SELF.tc == NULL)
#define tc_null(TC) (TC){.data=NULL, .tc=NULL} #define tc_null(TC) ((TC){.data=NULL, .tc=NULL})
#endif // !CUTES_TYPECLASS_HELPERS_H #endif // !CUTES_TYPECLASS_HELPERS_H