| 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 182 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 183 of file impeller.hpp.

184 {
185 #define IMPELLER_HPP_PROC(proc) \
186 { \
187 proc.function = \
188 reinterpret_cast<decltype(proc.function)>(resolver(proc.name)); \
189 if (proc.function == nullptr) { \
190 return false; \
191 } \
192 }
193 IMPELLER_HPP_EACH_PROC(IMPELLER_HPP_PROC)
194 #undef IMPELLER_HPP_PROC
195 return true;
196 }
IMPELLER_HPP_PROC
#define IMPELLER_HPP_PROC(proc)
Definition: impeller.hpp:198
IMPELLER_HPP_EACH_PROC
#define IMPELLER_HPP_EACH_PROC(PROC)
Definition: impeller.hpp:47

References IMPELLER_HPP_EACH_PROC, and IMPELLER_HPP_PROC.

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

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

- impeller/toolkit/interop/impeller.hpp