SetLastError() private method

private SetLastError ( int errorCode ) : void
errorCode int
return void
Beispiel #1
0
        public static int set_last_error(int errorCode)
        {
            int old_errno = NativeFunctions.GetLastError();

            NativeFunctions.SetLastError(errorCode);
            return(old_errno);
        }
Beispiel #2
0
 public static int set_last_error(int errorCode)
 {
     if (Environment.OSVersion.Platform == PlatformID.Win32NT)
     {
         int old_errno = NativeFunctions.GetLastError();
         NativeFunctions.SetLastError(errorCode);
         return(old_errno);
     }
     throw PythonOps.NameError("set_last_error");
 }
Beispiel #3
0
 public static void set_last_error(int errorCode)
 {
     NativeFunctions.SetLastError(errorCode);
 }