plugin test for the mentally unwell. I feel bad for using recursive Make.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

11 lines
171B

  1. #ifndef PLUG_H_
  2. #define BIND(lib, func, func_name) *(void **) (&func) = dlsym(lib, func_name)
  3. typedef void (*plug_t)(void);
  4. static plug_t plug;
  5. #define PLUG_H_
  6. #endif