Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
NativeMethods.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System.Runtime.InteropServices;
4 
5 namespace SiliconStudio.Paradox.VisualStudio
6 {
7  internal static class NativeMethods
8  {
9  public static int ThrowOnFailure(int hr)
10  {
11  if (hr < 0)
12  {
13  Marshal.ThrowExceptionForHR(hr);
14  }
15 
16  return hr;
17  }
18  }
19 }