PyErr_GivenExceptionMatches() private méthode

private PyErr_GivenExceptionMatches ( IntPtr ob, IntPtr val ) : int
ob IntPtr
val IntPtr
Résultat int
Exemple #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);
        }
Exemple #2
0
 public bool IsMatches(IntPtr exc)
 {
     return(Runtime.PyErr_GivenExceptionMatches(PyType, exc) != 0);
 }