#import "MatlabGeneratedCpp.h"
#import "matlab-generated-cpp.h"

@implementation MatlabGeneratedCpp

RCT_EXPORT_MODULE()

// Example method for C++
// See the implementation of the example module in the `cpp` folder
RCT_EXPORT_METHOD(multiply:(nonnull NSNumber*)a withB:(nonnull NSNumber*)b
                  withResolver:(RCTPromiseResolveBlock)resolve
                  withReject:(RCTPromiseRejectBlock)reject)
{
    NSNumber *result = @(multiply([a floatValue], [b floatValue]));

    resolve(result);
}

@end
