c_source_parser_ffi 2025.1.6

Scan C/C++ source tree to get #include dependency and symbols
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef C_SOURCE_PARSER_FFI_DYLIB_API
#define C_SOURCE_PARSER_FFI_DYLIB_API


#define INVALID_DYLIB_HANDLE ((void *)0)

#define INVALID_DYLIB_SYMBOL ((void *)0)


typedef void *dylib_handle;
typedef void *dylib_symbol;

dylib_handle dylib_open(const char *path);
void dylib_close(dylib_handle handle);

int dylib_has(dylib_handle handle, const char *name);
dylib_symbol dylib_get(dylib_handle handle, const char *name);

const char *dylib_error();

#endif // C_SOURCE_PARSER_FFI_DYLIB_API