cutes/typeclass_helpers.h

11 lines
334 B
C

#ifndef _fencer_typeclass_helpers_h
#define _fencer_typeclass_helpers_h
#define TC_FN_TYPECHECK(__Return, __Name, ...)\
__Return (*const __Name##_)(__VA_ARGS__) = __Name; (void)__Name##_
#define decl_typeclass_impl(__Typeclass, __Type)\
extern __Typeclass __Type##_as_##__Typeclass(__Type*);
#endif // !_fencer_typeclass_helpers_h