|
@@ -23,6 +23,8 @@
|
|
|
#include "lualib.h"
|
|
|
#include "luajit.h"
|
|
|
|
|
|
+#include <dlfcn.h>
|
|
|
+
|
|
|
STRUCTURE(MyData){
|
|
|
int _pad;
|
|
|
laSafeString* Code;
|
|
@@ -82,6 +84,12 @@ int INV_RunCode(laOperator* a, laEvent* e){
|
|
|
printf("%s\n",name);
|
|
|
}
|
|
|
lua_pop(L,1);
|
|
|
+
|
|
|
+ // Getting binary exported functions this way directly in C
|
|
|
+ // void *hndl = dlopen (NULL, RTLD_LAZY);
|
|
|
+ // void (*fptr)(char*) = dlsym (hndl, "ShowLaGUIMessagePanel");
|
|
|
+ // if(fptr){ fptr("well this is from dlsym"); }
|
|
|
+
|
|
|
return LA_FINISHED;
|
|
|
}
|
|
|
|