Fix for C++ header in public Objective-C header (#2156)

This commit is contained in:
Stefan Karschti
2024-02-28 19:16:03 +02:00
committed by GitHub
parent 003c062c25
commit 649f4a5630
3 changed files with 10 additions and 9 deletions

View File

@@ -13,6 +13,10 @@
#include <memory>
#include <cmath>
@interface MLNCustomDrawableStyleLayer (Internal)
- (instancetype)initWithPendingLayer:(std::unique_ptr<mbgl::style::Layer>)pendingLayer;
@end
class ExampleCustomDrawableStyleLayerHost;
@implementation ExampleCustomDrawableStyleLayer

View File

@@ -6,15 +6,6 @@
#import "MLNStyleLayer.h"
#import "MLNGeometry.h"
#ifdef __cplusplus
#include <mbgl/style/layer.hpp>
#endif
MLN_EXPORT
@interface MLNCustomDrawableStyleLayer : MLNStyleLayer
#ifdef __cplusplus
- (instancetype)initWithPendingLayer:(std::unique_ptr<mbgl::style::Layer>)pendingLayer;
#endif
@end

View File

@@ -12,6 +12,12 @@
#include <memory>
#include <cmath>
#include <mbgl/style/layer.hpp>
@interface MLNCustomDrawableStyleLayer (Internal)
- (instancetype)initWithPendingLayer:(std::unique_ptr<mbgl::style::Layer>)pendingLayer;
@end
@implementation MLNCustomDrawableStyleLayer
- (instancetype)initWithRawLayer:(mbgl::style::Layer *)rawLayer {