示例#1
0
        public static int is_main(cef_frame_t *self)
        {
            is_main_delegate d;
            var p = self->_is_main;

            if (p == _p12)
            {
                d = _d12;
            }
            else
            {
                d = (is_main_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_main_delegate));
                if (_p12 == IntPtr.Zero)
                {
                    _d12 = d; _p12 = p;
                }
            }
            return(d(self));
        }
示例#2
0
 public static int is_main(cef_frame_t* self)
 {
     is_main_delegate d;
     var p = self->_is_main;
     if (p == _p12) { d = _d12; }
     else
     {
         d = (is_main_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_main_delegate));
         if (_p12 == IntPtr.Zero) { _d12 = d; _p12 = p; }
     }
     return d(self);
 }