SetLastError() private method

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

            NativeFunctions.SetLastError(errorCode);
            return(old_errno);
        }
Exemplo n.º 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");
 }
Exemplo n.º 3
0
 public static void set_last_error(int errorCode)
 {
     NativeFunctions.SetLastError(errorCode);
 }