optimize lib.nas

This commit is contained in:
ValKmjolnir
2023-12-06 20:10:07 +08:00
parent 7c5f222364
commit 6adf573f3f
51 changed files with 162 additions and 81 deletions
+3
View File
@@ -2,6 +2,9 @@
# 2023 by ValKmjolnir
# dylib is the core hashmap for developers to load their own library.
# for safe using dynamic library, you could use 'module' in stl/module.nas
use std.os;
use std.io;
use std.unix;
# open dynamic lib. return a hash including dl pointer and function pointers
var dlopen = func(libname) {