make compiler
parent
a9b8bc067f
commit
1bbf3a3a0c
|
@ -615,7 +615,7 @@ mut args := ''
|
||||||
}
|
}
|
||||||
println('linux cross compilation done. resulting binary: "$v.out_name"')
|
println('linux cross compilation done. resulting binary: "$v.out_name"')
|
||||||
}
|
}
|
||||||
if v.out_name_c != 'v.c' {
|
if v.out_name_c != 'v.c' && v.out_name_c != 'v_macos.c' {
|
||||||
os.rm('$TmpPath/$v.out_name_c')
|
os.rm('$TmpPath/$v.out_name_c')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@ module os
|
||||||
|
|
||||||
// Ref - https://docs.microsoft.com/en-us/windows/desktop/winprog/windows-data-types
|
// Ref - https://docs.microsoft.com/en-us/windows/desktop/winprog/windows-data-types
|
||||||
// A handle to an object.
|
// A handle to an object.
|
||||||
|
/*
|
||||||
type HANDLE voidptr // C.HANDLE
|
type HANDLE voidptr // C.HANDLE
|
||||||
|
|
||||||
pub fn get_file_handle(path string) HANDLE {
|
pub fn get_file_handle(path string) HANDLE {
|
||||||
|
@ -13,3 +14,4 @@ pub fn get_file_handle(path string) HANDLE {
|
||||||
_handle := C._get_osfhandle(C._fileno(_fh)) // CreateFile? - hah, no -_-
|
_handle := C._get_osfhandle(C._fileno(_fh)) // CreateFile? - hah, no -_-
|
||||||
return _handle
|
return _handle
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
Loading…
Reference in New Issue