#include <dlfcn.h>
#include "CppInterOp/Box.h"
#include "CppInterOp/CppInterOpTypes.h"
#include <cstdlib>
#include <iostream>
#include <memory>
#include <mutex>
#include <set>
#include "CppInterOp/CppInterOpAPI.inc"
Go to the source code of this file.
|
| #define | CPPINTEROP_API_FUNC(DN, CN, Ret, DeclArgs, CallArgs, RawTypes) extern Ret(*DN) RawTypes; |
| |
| #define | CPPINTEROP_API_FUNC(DN, CN, Ret, DeclArgs, CallArgs, RawTypes) inline Ret CN DeclArgs { return ::CppInternal::DispatchRaw::DN CallArgs; } |
| |
| #define | CPPINTEROP_API_FUNC(DN, CN, Ret, DeclArgs, CallArgs, RawTypes) |
| |
| #define | CPPINTEROP_API_FUNC(DN, CN, Ret, DeclArgs, CallArgs, RawTypes) ::CppInternal::DispatchRaw::DN = nullptr; |
| |
◆ CPPINTEROP_API_FUNC [1/4]
| #define CPPINTEROP_API_FUNC |
( |
|
DN, |
|
|
|
CN, |
|
|
|
Ret, |
|
|
|
DeclArgs, |
|
|
|
CallArgs, |
|
|
|
RawTypes |
|
) |
| extern Ret(*DN) RawTypes; |
◆ CPPINTEROP_API_FUNC [2/4]
| #define CPPINTEROP_API_FUNC |
( |
|
DN, |
|
|
|
CN, |
|
|
|
Ret, |
|
|
|
DeclArgs, |
|
|
|
CallArgs, |
|
|
|
RawTypes |
|
) |
| inline Ret CN DeclArgs { return ::CppInternal::DispatchRaw::DN CallArgs; } |
◆ CPPINTEROP_API_FUNC [3/4]
| #define CPPINTEROP_API_FUNC |
( |
|
DN, |
|
|
|
CN, |
|
|
|
Ret, |
|
|
|
DeclArgs, |
|
|
|
CallArgs, |
|
|
|
RawTypes |
|
) |
| |
Value: ::CppInternal::DispatchRaw::DN = \
void * dlGetProcAddress(const char *name, const char *customLibPath=nullptr)
Definition at line 109 of file Dispatch.h.
◆ CPPINTEROP_API_FUNC [4/4]
| #define CPPINTEROP_API_FUNC |
( |
|
DN, |
|
|
|
CN, |
|
|
|
Ret, |
|
|
|
DeclArgs, |
|
|
|
CallArgs, |
|
|
|
RawTypes |
|
) |
| ::CppInternal::DispatchRaw::DN = nullptr; |
◆ 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.
◆ dlGetProcAddress()
| void * dlGetProcAddress |
( |
const char * |
name, |
|
|
const char * |
customLibPath = nullptr |
|
) |
| |
|
inline |