Flutter Impeller
IMPELLER_HPP_NAMESPACE::ProcTable Struct Reference

#include <impeller.hpp>

Public Member Functions

bool Initialize (const std::function< void *(const char *function_name)> &resolver)
 

Detailed Description

Definition at line 217 of file impeller.hpp.

Member Function Documentation

◆ Initialize()

bool IMPELLER_HPP_NAMESPACE::ProcTable::Initialize ( const std::function< void *(const char *function_name)> &  resolver)
inline

Definition at line 218 of file impeller.hpp.

219  {
220 #define IMPELLER_HPP_PROC(proc) \
221  { \
222  proc.function = \
223  reinterpret_cast<decltype(proc.function)>(resolver(proc.name)); \
224  if (proc.function == nullptr) { \
225  return false; \
226  } \
227  }
229 #undef IMPELLER_HPP_PROC
230  return true;
231  }
#define IMPELLER_HPP_PROC(proc)
Definition: impeller.hpp:233
#define IMPELLER_HPP_EACH_PROC(PROC)
Definition: impeller.hpp:47

References IMPELLER_HPP_EACH_PROC, and IMPELLER_HPP_PROC.

Referenced by impeller::interop::testing::SetupImpellerHPPProcTableOnce().


The documentation for this struct was generated from the following file: