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

Method SetWeak

test-app/runtime/src/main/cpp/include/v8-persistent-handle.h:510–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508template <class T>
509template <typename P>
510V8_INLINE void PersistentBase<T>::SetWeak(
511 P* parameter, typename WeakCallbackInfo<P>::Callback callback,
512 WeakCallbackType type) {
513 using Callback = WeakCallbackInfo<void>::Callback;
514#if (__GNUC__ >= 8) && !defined(__clang__)
515#pragma GCC diagnostic push
516#pragma GCC diagnostic ignored "-Wcast-function-type"
517#endif
518 api_internal::MakeWeak(reinterpret_cast<internal::Address*>(this->val_),
519 parameter, reinterpret_cast<Callback>(callback), type);
520#if (__GNUC__ >= 8) && !defined(__clang__)
521#pragma GCC diagnostic pop
522#endif
523}
524
525template <class T>
526void PersistentBase<T>::SetWeak() {

Callers 6

BindFinalizerMethod · 0.80
BindFinalizerMethod · 0.80
LinkMethod · 0.80
JSObjectFinalizerMethod · 0.80
JSObjectWeakCallbackMethod · 0.80
BindFinalizerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected