MCPcopy Create free account
hub / github.com/NativeScript/android / FromMaybe

Method FromMaybe

test-app/runtime/src/main/cpp/include/v8-maybe.h:69–71  ·  view source on GitHub ↗

* Converts this Maybe<> to a value of type T, using a default value if this * Maybe<> is nothing (empty). */

Source from the content-addressed store, hash-verified

67 * Maybe<> is nothing (empty).
68 */
69 V8_INLINE T FromMaybe(const T& default_value) const {
70 return has_value_ ? value_ : default_value;
71 }
72
73 V8_INLINE bool operator==(const Maybe& other) const {
74 return (IsJust() == other.IsJust()) &&

Callers 14

LoadESModuleMethod · 0.45
ResolveModuleCallbackFunction · 0.45
GetErrorMessageMethod · 0.45
PostCallbackMethod · 0.45
PostFrameCallbackMethod · 0.45
RemoveFrameCallbackMethod · 0.45
V8GetPrivateValueMethod · 0.45
V8SetPrivateValueMethod · 0.45
registerModulesMethod · 0.45

Calls

no outgoing calls

Tested by 1

registerModulesMethod · 0.36