36 lines
944 B
Plaintext
Generated
36 lines
944 B
Plaintext
Generated
///
|
|
/// NitroEpubAutolinking.mm
|
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
/// https://github.com/mrousavy/nitro
|
|
/// Copyright © Marc Rousavy @ Margelo
|
|
///
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <NitroModules/HybridObjectRegistry.hpp>
|
|
|
|
#import <type_traits>
|
|
|
|
#include "HybridEpub.hpp"
|
|
|
|
@interface NitroEpubAutolinking : NSObject
|
|
@end
|
|
|
|
@implementation NitroEpubAutolinking
|
|
|
|
+ (void) load {
|
|
using namespace margelo::nitro;
|
|
using namespace margelo::nitro::nitroepub;
|
|
|
|
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
"Epub",
|
|
[]() -> std::shared_ptr<HybridObject> {
|
|
static_assert(std::is_default_constructible_v<HybridEpub>,
|
|
"The HybridObject \"HybridEpub\" is not default-constructible! "
|
|
"Create a public constructor that takes zero arguments to be able to autolink this HybridObject.");
|
|
return std::make_shared<HybridEpub>();
|
|
}
|
|
);
|
|
}
|
|
|
|
@end
|