The Meson Build System http://mesonbuild.com/
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.

22 lines
367 B

const string MODULE_LIB = "libapp_module.so";
delegate int ModuleFunc ();
public int app_func () {
return 41;
}
int main () {
Module module;
void *func;
unowned ModuleFunc mfunc;
module = Module.open (MODULE_LIB, ModuleFlags.BIND_LAZY);
module.symbol ("module_func", out func);
mfunc = (ModuleFunc) func;
print ("%d\n", mfunc ());
return 0;
}