MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / getContext

Function getContext

system/include/emscripten/bind.h:582–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580// TODO: This could do a reinterpret-cast if sizeof(T) === sizeof(void*)
581template<typename T>
582inline T* getContext(const T& t) {
583 // not a leak because this is called once per binding
584 auto* ret = new T(t);
585#if __has_feature(leak_sanitizer) || __has_feature(address_sanitizer)
586 __lsan_ignore_object(ret);
587#endif
588 return ret;
589}
590
591template<typename Func, typename ValueTypeOrSignature>
592struct FunctionTag {};

Callers 15

getContextMethod · 0.85
getContextMethod · 0.85
getContextMethod · 0.85
getContextMethod · 0.85
getContextMethod · 0.85
getContextMethod · 0.85
getContextMethod · 0.85
getContextMethod · 0.85
value_arrayClass · 0.85
value_objectClass · 0.85
invokeMethod · 0.85
invokeMethod · 0.85

Calls 1

__lsan_ignore_objectFunction · 0.85

Tested by

no test coverage detected