plugin test for the mentally unwell. I feel bad for using recursive Make.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。

13 行
269B

  1. #ifndef PLUG_H_
  2. #define _QUOTE(name) #name
  3. #define QUOTE(name) _QUOTE(name)
  4. #define BIND(lib, func, func_name) *(void **) (&func) = dlsym(lib, func_name)
  5. #define PLUGIN(lib, x) BIND(lib, x, QUOTE(x))
  6. typedef void (*plug_t)(void);
  7. plug_t plug;
  8. #define PLUG_H_
  9. #endif