#include "CppInterOp/CppInterOp.h"
#include <iostream>
#include <string_view>
#include <unordered_map>
#include "CppInterOp/CppInterOpAPI.inc"
Go to the source code of this file.
◆ CPPINTEROP_API_FUNC
| #define CPPINTEROP_API_FUNC |
( |
|
DN, |
|
|
|
CN, |
|
|
|
Ret, |
|
|
|
DeclArgs, |
|
|
|
CallArgs, |
|
|
|
RawTypes |
|
) |
| {#DN, (CppFnPtrTy) static_cast<Ret(*) RawTypes>(&Cpp::CN)}, |
◆ CppFnPtrTy
◆ CppGetProcAddress()
| CppFnPtrTy CppGetProcAddress |
( |
const char * |
procname | ) |
|
- Parameters
-
| [in] | procname | - the name of the FunctionEntry in the symbol lookup table. |
- Returns
- the function address of the requested API, or nullptr if not found
Definition at line 37 of file CppInterOpDispatch.cpp.
References DispatchMap.
◆ DispatchMap
| const std::unordered_map<std::string_view, CppFnPtrTy> DispatchMap |
|
static |