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