Esempio n. 1
0
        public static int set_rethrow_exceptions(cef_v8value_t *self, int rethrow)
        {
            set_rethrow_exceptions_delegate d;
            var p = self->_set_rethrow_exceptions;

            if (p == _p1b)
            {
                d = _d1b;
            }
            else
            {
                d = (set_rethrow_exceptions_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_rethrow_exceptions_delegate));
                if (_p1b == IntPtr.Zero)
                {
                    _d1b = d; _p1b = p;
                }
            }
            return(d(self, rethrow));
        }
Esempio n. 2
0
 public static int set_rethrow_exceptions(cef_v8value_t* self, int rethrow)
 {
     set_rethrow_exceptions_delegate d;
     var p = self->_set_rethrow_exceptions;
     if (p == _p1b) { d = _d1b; }
     else
     {
         d = (set_rethrow_exceptions_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_rethrow_exceptions_delegate));
         if (_p1b == IntPtr.Zero) { _d1b = d; _p1b = p; }
     }
     return d(self, rethrow);
 }