It's terrible, but I added _some_ form of launch args support for Linux/macOS
This commit is contained in:
1 parent
ce0d874efd
commit
c9c82da1f3
4 files changed
+147
-5
No files matched your search
@@ -36,6 +36,8 @@ RTLD_NOW :: 0x002;
|
||||
RTLD_BINDING_MASK :: 0x3;
|
||||
RTLD_GLOBAL :: 0x100;
|
||||
|
||||
args: [dynamic]string;
|
||||
|
||||
#foreign_system_library dl "dl";
|
||||
#foreign_system_library libc "c";
|
||||
|
||||
|
||||
+3
-2
@@ -39,6 +39,8 @@ RTLD_NODELETE :: 0x80;
|
||||
RTLD_NOLOAD :: 0x10;
|
||||
RTLD_FIRST :: 0x100;
|
||||
|
||||
args: [dynamic]string;
|
||||
|
||||
#foreign_system_library dl "dl";
|
||||
#foreign_system_library libc "c";
|
||||
|
||||
@@ -211,5 +213,4 @@ dlclose :: proc(handle: rawptr) -> bool #inline {
|
||||
}
|
||||
dlerror :: proc() -> string {
|
||||
return strings.to_odin_string(unix_dlerror());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user