I have to use dlsym to load a function name from an external library.
But my concern is that he function is defined via a macro #define.
Assuming that dlopen call was successful, will dlsym find the correct symbol using the #defined name in this case?
The following is a header file which includes the #defined function name:
#define LogVPrintDebug(context, fmt, args) \
(void) LogVPrint(context, kLevel_Debug, fmt, args)
LogErr LogVPrint_(LogContext context, LogLevel level,
const char* fmt, va_list args) __attribute__ ((deprecated));
and LogVPrint is the actual funciton.