It's terrible, but I added _some_ form of launch args support for Linux/macOS

This commit is contained in:
Zachary Pierson
2017-04-02 18:42:58 -05:00
parent ce0d874efd
commit c9c82da1f3
4 changed files with 147 additions and 5 deletions
+2
View File
@@ -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
View File
@@ -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());
}
}