System module

get_error_value

constantSource

Returns the last error code the operating system set: errno on Unix, GetLastError on Windows. Read it right after the call that failed.

Example↗
description := get_error_string(get_error_value());
assert(description.count >= 0);
get_error_value :: Windows.GetLastError

See also