mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Not having this disallows including turbo module and extending in places where RTTI is enabled. There is no additional includes or implementation changes - it merely allows for things to nicely link with other libraries. Changelog: [General][Fixed] - Allow including TurboModule.h in mixed rtti/no-rtti environment, even if TurboModule.h/cpp is compiled without RTTI. Reviewed By: appden Differential Revision: D34637168 fbshipit-source-id: 2e5d9e546bdc5652f06436fec3b12f1aa9daab05
22 lines
473 B
C++
22 lines
473 B
C++
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#include "TurboModule.h"
|
|
|
|
using namespace facebook;
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
TurboModule::TurboModule(
|
|
const std::string &name,
|
|
std::shared_ptr<CallInvoker> jsInvoker)
|
|
: name_(name), jsInvoker_(jsInvoker) {}
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|