mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-15 07:39:20 +08:00
Fabric: getDebugDescription implementation for shared_ptr, weak_ptr and unique_ptr
Summary: Trivial. Reviewed By: mdvacca Differential Revision: D14715083 fbshipit-source-id: 92031cbbf166ea00569a6076d41575a9fd741043
This commit is contained in:
committed by
Facebook Github Bot
parent
0fb27a7633
commit
7cf3938efb
@@ -142,6 +142,9 @@ std::string toString(double const &value) {
|
||||
return folly::to<std::string>(value);
|
||||
}
|
||||
std::string toString(void const *value) {
|
||||
if (value == nullptr) {
|
||||
return "null";
|
||||
}
|
||||
return folly::sformat("0x{0:016x}", reinterpret_cast<size_t>(value));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user