dllapi
dllapi copied to clipboard
call c api by dynamically loading it's library and without code change. Use this instead(more features, supper set) https://github.com/wang-bin/capi
with the same name, without namespace symbol confiliction? ``` void afunc() { dlsym(real_lib, "afunc")(); } ```
if defined `#define TypeA char` , then `TypeA` will be preprocessed. disable preprocessing or remove those lines? keep some `#ifdef xxx` in cpp
thus we don't have to process the arguments in command line. but it will be more like a compiler
so we can directly use some c headers.
throw an exception if symbol can not be resolved so user can avoid crash
e.g. gl use GetProcAddress