mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-26 17:30:02 +00:00
It's terrible, but I added _some_ form of launch args support for Linux/macOS
This commit is contained in:
@@ -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