g_function_dispatchers.insert(std::make_pair( \
std::string_view(#FUNCTION), \
reinterpret_cast<void*>( \
344 {
345
346std::once_flag g_dispatchers_init_flag;
347std::unordered_map<std::string_view, void*> g_function_dispatchers;
348
349void* ResolveFfiNativeFunction(
const char*
name, uintptr_t
args) {
350 auto it = g_function_dispatchers.find(
name);
351 return (it != g_function_dispatchers.end()) ? it->second : nullptr;
352}
353
354void InitDispatcherMap() {
357
358#ifdef IMPELLER_ENABLE_3D
361#endif
362}
363
364}
365
366void DartUI::InitForIsolate(const Settings& settings) {
367 std::call_once(g_dispatchers_init_flag, InitDispatcherMap);
368
372 }
373
374
379 }
380
385 }
386 }
387
388 if (
settings.enable_platform_isolates) {
393 }
394 }
395
400 }
401}
402
403}
DART_EXPORT Dart_Handle Dart_SetFfiNativeResolver(Dart_Handle library, Dart_FfiNativeResolver resolver)
struct _Dart_Handle * Dart_Handle
DART_EXPORT void Dart_PropagateError(Dart_Handle handle)
DART_EXPORT Dart_Handle Dart_True(void)
DART_EXPORT Dart_Handle Dart_LookupLibrary(Dart_Handle url)
DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_SetField(Dart_Handle container, Dart_Handle name, Dart_Handle value)
DART_EXPORT Dart_Handle Dart_NewInteger(int64_t value)
DART_EXPORT bool Dart_IsError(Dart_Handle handle)
#define FFI_FUNCTION_LIST(V)
#define FFI_FUNCTION_INSERT(FUNCTION)
#define FFI_METHOD_LIST(V)
#define FFI_METHOD_INSERT(CLASS, METHOD)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
Dart_Handle ToDart(const T &object)