Add declarations for ObjC helper methods

This commit is contained in:
Jake Turner
2022-03-15 06:27:53 +00:00
committed by Baldur Karlsson
parent ca7495a3c8
commit b92dccc5e9
+6 -2
View File
@@ -33,8 +33,12 @@
FUNC(Function); \
FUNC(Library);
#define DECLARE_OBJC_HELPERS(CPPTYPE) \
class WrappedMTL##CPPTYPE; \
#define DECLARE_OBJC_HELPERS(CPPTYPE) \
class WrappedMTL##CPPTYPE; \
extern WrappedMTL##CPPTYPE *GetWrapped(MTL::CPPTYPE *objCWrapped); \
extern MTL::CPPTYPE *GetReal(MTL::CPPTYPE *objCWrapped); \
extern bool IsObjCWrapped(MTL::CPPTYPE *objCWrapped); \
extern ResourceId GetId(MTL::CPPTYPE *objCWrapped); \
extern MTL::CPPTYPE *AllocateObjCBridge(WrappedMTL##CPPTYPE *wrapped);
METALCPP_WRAPPED_PROTOCOLS(DECLARE_OBJC_HELPERS)