| Flutter Impeller |

Public Member Functions | List of all members
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 226 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 227 of file impeller.hpp.

228 {
229 #define IMPELLER_HPP_PROC(proc) \
230 { \
231 proc.function = \
232 reinterpret_cast<decltype(proc.function)>(resolver(proc.name)); \
233 if (proc.function == nullptr) { \
234 return false; \
235 } \
236 }
237 IMPELLER_HPP_EACH_PROC(IMPELLER_HPP_PROC)
238 #undef IMPELLER_HPP_PROC
239 return true;
240 }
IMPELLER_HPP_PROC
#define IMPELLER_HPP_PROC(proc)
Definition: impeller.hpp:242
IMPELLER_HPP_EACH_PROC
#define IMPELLER_HPP_EACH_PROC(PROC)
Definition: impeller.hpp:48

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:

- impeller/toolkit/interop/impeller.hpp