Go to the source code of this file.
◆ NNDEPLOY_DEFINE_FUNC_PTR
| #define NNDEPLOY_DEFINE_FUNC_PTR |
( |
|
func | ) |
func##Func func = nullptr |
◆ NNDEPLOY_LOAD_FUNCTION_PTR
| #define NNDEPLOY_LOAD_FUNCTION_PTR |
( |
|
handle, |
|
|
|
func_name |
|
) |
| |
Value: if (is_pixel) { \
func_name = \
reinterpret_cast<func_name##Func>(loadOpenCLPointer(#func_name)); \
} else { \
func_name = reinterpret_cast<func_name##Func>(dlsym(handle, #func_name)); \
} \
if (func_name == nullptr) { \
NNDEPLOY_LOGE("load func (%s) from (%s) failed!\n", #func_name, \
library_path.c_str()); \
return false; \
}
Definition at line 49 of file dlopen.h.
◆ NNDEPLOY_TRY_LOAD_FUNCTION_PTR
| #define NNDEPLOY_TRY_LOAD_FUNCTION_PTR |
( |
|
handle, |
|
|
|
func_name |
|
) |
| |
Value: if (is_pixel) { \
func_name = \
reinterpret_cast<func_name##Func>(loadOpenCLPointer(#func_name)); \
} else { \
func_name = reinterpret_cast<func_name##Func>(dlsym(handle, #func_name)); \
} \
if (func_name == nullptr) { \
NNDEPLOY_LOGE("load func (%s) from (%s) failed!\n", #func_name, \
library_path.c_str()); \
}
Definition at line 64 of file dlopen.h.