PyErr_GivenExceptionMatches() private method

private PyErr_GivenExceptionMatches ( IntPtr ob, IntPtr val ) : int
ob IntPtr
val IntPtr
return int
Esempio n. 1
0
        /// <summary>
        /// ExceptionMatches Method
        /// </summary>
        /// <remarks>
        /// Returns true if the given Python exception matches the given
        /// Python object. This is a wrapper for PyErr_GivenExceptionMatches.
        /// </remarks>
        public static bool ExceptionMatches(IntPtr exc, IntPtr ob)
        {
            int i = Runtime.PyErr_GivenExceptionMatches(exc, ob);

            return(i != 0);
        }
Esempio n. 2
0
 public bool IsMatches(IntPtr exc)
 {
     return(Runtime.PyErr_GivenExceptionMatches(PyType, exc) != 0);
 }