mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 04:35:36 +08:00
Fabric: Debug Pretty-printing is now debug only feature
Summary: That should save us some app size kilobytes. Reviewed By: mdvacca Differential Revision: D10081499 fbshipit-source-id: 2b950768c609b412f9be332c22b6b1e96657e5ea
This commit is contained in:
committed by
Facebook Github Bot
parent
02ad56f541
commit
e3b61f53bd
@@ -20,6 +20,8 @@
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
|
||||
#if RN_DEBUG_STRING_CONVERTIBLE
|
||||
|
||||
inline std::string toString(const std::string &value) { return value; }
|
||||
inline std::string toString(const int &value) { return folly::to<std::string>(value); }
|
||||
inline std::string toString(const bool &value) { return folly::to<std::string>(value); }
|
||||
@@ -55,5 +57,7 @@ inline SharedDebugStringConvertible debugStringConvertibleItem(std::string name,
|
||||
return debugStringConvertibleItem(name, value.getDebugDescription(), defaultValue);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
} // namespace react
|
||||
} // namespace facebook
|
||||
|
||||
Reference in New Issue
Block a user