///
/// ZstdAutolinking.mm
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2026 Marc Rousavy @ Margelo
///

#import <Foundation/Foundation.h>
#import <NitroModules/HybridObjectRegistry.hpp>

#import <type_traits>

#include "HybridZstd.hpp"

@interface ZstdAutolinking : NSObject
@end

@implementation ZstdAutolinking

+ (void) load {
  using namespace margelo::nitro;
  using namespace margelo::nitro::zstd;

  HybridObjectRegistry::registerHybridObjectConstructor(
    "Zstd",
    []() -> std::shared_ptr<HybridObject> {
      static_assert(std::is_default_constructible_v<HybridZstd>,
                    "The HybridObject \"HybridZstd\" is not default-constructible! "
                    "Create a public constructor that takes zero arguments to be able to autolink this HybridObject.");
      return std::make_shared<HybridZstd>();
    }
  );
}

@end
