Python.Runtime.Exceptions.ErrorOccurredCheck C# (CSharp) Method

ErrorOccurredCheck() static private method

Shortcut for (pointer == NULL or ErrorOccurred()) -> throw PythonException
static private ErrorOccurredCheck ( IntPtr pointer ) : void
pointer System.IntPtr
return void
        internal static unsafe void ErrorOccurredCheck(IntPtr pointer)
        {
            if ((pointer == IntPtr.Zero) || Exceptions.ErrorOccurred())
            {
                throw new PythonException();
            }
        }