|
@@ -23,6 +23,8 @@
|
|
#include "lualib.h"
|
|
#include "lualib.h"
|
|
#include "luajit.h"
|
|
#include "luajit.h"
|
|
|
|
|
|
|
|
+#include <dlfcn.h>
|
|
|
|
+
|
|
STRUCTURE(MyData){
|
|
STRUCTURE(MyData){
|
|
int _pad;
|
|
int _pad;
|
|
laSafeString* Code;
|
|
laSafeString* Code;
|
|
@@ -82,6 +84,12 @@ int INV_RunCode(laOperator* a, laEvent* e){
|
|
printf("%s\n",name);
|
|
printf("%s\n",name);
|
|
}
|
|
}
|
|
lua_pop(L,1);
|
|
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;
|
|
return LA_FINISHED;
|
|
}
|
|
}
|
|
|
|
|