public static UIntPtr get_frame_count(cef_browser_t *self)
        {
            get_frame_count_delegate d;
            var p = self->_get_frame_count;

            if (p == _p14)
            {
                d = _d14;
            }
            else
            {
                d = (get_frame_count_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_frame_count_delegate));
                if (_p14 == IntPtr.Zero)
                {
                    _d14 = d; _p14 = p;
                }
            }
            return(d(self));
        }
        public static int get_frame_count(cef_v8stack_trace_t *self)
        {
            get_frame_count_delegate d;
            var p = self->_get_frame_count;

            if (p == _p4)
            {
                d = _d4;
            }
            else
            {
                d = (get_frame_count_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_frame_count_delegate));
                if (_p4 == IntPtr.Zero)
                {
                    _d4 = d; _p4 = p;
                }
            }
            return(d(self));
        }
Beispiel #3
0
 public static UIntPtr get_frame_count(cef_browser_t* self)
 {
     get_frame_count_delegate d;
     var p = self->_get_frame_count;
     if (p == _p14) { d = _d14; }
     else
     {
         d = (get_frame_count_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_frame_count_delegate));
         if (_p14 == IntPtr.Zero) { _d14 = d; _p14 = p; }
     }
     return d(self);
 }
 public static int get_frame_count(cef_v8stack_trace_t* self)
 {
     get_frame_count_delegate d;
     var p = self->_get_frame_count;
     if (p == _p4) { d = _d4; }
     else
     {
         d = (get_frame_count_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_frame_count_delegate));
         if (_p4 == IntPtr.Zero) { _d4 = d; _p4 = p; }
     }
     return d(self);
 }