forked from xxq250/Nasal-Interpreter
update test/md5.nas(still has bug) & add libmd5 in module(written in C++)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import("lib.nas");
|
||||
|
||||
var md5=func(str){
|
||||
var lib=dylib.dlopen("./module/libmd5"~(os.platform()=="windows"?".dll":".so"));
|
||||
var res=dylib.dlcall(dylib.dlsym(lib,"nas_md5"),str);
|
||||
dylib.dlclose(lib);
|
||||
return res;
|
||||
}
|
||||
Reference in New Issue
Block a user