Remove usage of do in core library

This commit is contained in:
gingerBill committed 2020-09-23 17:17:14 +01:00
1 parent 4844dd4d96
commit fc4fdd588e
45 files changed
+960 -520

No files matched your search

+3 -1
View File
@@ -5,7 +5,9 @@ import "core:os"
load_library :: proc(path: string, global_symbols := false) -> (Library, bool) {
flags := os.RTLD_NOW;
if global_symbols do flags |= os.RTLD_GLOBAL;
if global_symbols {
flags |= os.RTLD_GLOBAL;
}
lib := os.dlopen(path, flags);
return Library(lib), lib != nil;
}