public static int can_go_back(cef_browser_t *self)
        {
            can_go_back_delegate d;
            var p = self->_can_go_back;

            if (p == _p4)
            {
                d = _d4;
            }
            else
            {
                d = (can_go_back_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(can_go_back_delegate));
                if (_p4 == IntPtr.Zero)
                {
                    _d4 = d; _p4 = p;
                }
            }
            return(d(self));
        }
Example #2
0
 public static int can_go_back(cef_browser_t* self)
 {
     can_go_back_delegate d;
     var p = self->_can_go_back;
     if (p == _p4) { d = _d4; }
     else
     {
         d = (can_go_back_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(can_go_back_delegate));
         if (_p4 == IntPtr.Zero) { _d4 = d; _p4 = p; }
     }
     return d(self);
 }