Пример #1
0
        public static int can_cancel(cef_domevent_t *self)
        {
            can_cancel_delegate d;
            var p = self->_can_cancel;

            if (p == _p7)
            {
                d = _d7;
            }
            else
            {
                d = (can_cancel_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(can_cancel_delegate));
                if (_p7 == IntPtr.Zero)
                {
                    _d7 = d; _p7 = p;
                }
            }
            return(d(self));
        }
Пример #2
0
 public static int can_cancel(cef_domevent_t* self)
 {
     can_cancel_delegate d;
     var p = self->_can_cancel;
     if (p == _p7) { d = _d7; }
     else
     {
         d = (can_cancel_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(can_cancel_delegate));
         if (_p7 == IntPtr.Zero) { _d7 = d; _p7 = p; }
     }
     return d(self);
 }