add dylib.dlopen dylib.dlsym dylib.dlclose dylib.dlcall

now you could add your own modules into nasal without changing the source code!
This commit is contained in:
ValKmjolnir
2021-12-03 19:31:03 +08:00
parent aa191a9feb
commit 9861ecd03e
8 changed files with 337 additions and 94 deletions
+6
View File
@@ -23,6 +23,12 @@
#include <fcntl.h>
#include <dirent.h>
#ifdef _WIN32
#include <windows.h>
#else
#include <dlfcn.h>
#endif
inline double hex_to_double(const char* str)
{
double ret=0;