예제 #1
0
        public static cef_v8context_t *get_v8context(cef_frame_t *self)
        {
            get_v8context_delegate d;
            var p = self->_get_v8context;

            if (p == _p19)
            {
                d = _d19;
            }
            else
            {
                d = (get_v8context_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_v8context_delegate));
                if (_p19 == IntPtr.Zero)
                {
                    _d19 = d; _p19 = p;
                }
            }
            return(d(self));
        }
예제 #2
0
 public static cef_v8context_t* get_v8context(cef_frame_t* self)
 {
     get_v8context_delegate d;
     var p = self->_get_v8context;
     if (p == _p19) { d = _d19; }
     else
     {
         d = (get_v8context_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_v8context_delegate));
         if (_p19 == IntPtr.Zero) { _d19 = d; _p19 = p; }
     }
     return d(self);
 }