示例#1
0
        public static int has_value_byindex(cef_v8value_t *self, int index)
        {
            has_value_byindex_delegate d;
            var p = self->_has_value_byindex;

            if (p == _p1d)
            {
                d = _d1d;
            }
            else
            {
                d = (has_value_byindex_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_value_byindex_delegate));
                if (_p1d == IntPtr.Zero)
                {
                    _d1d = d; _p1d = p;
                }
            }
            return(d(self, index));
        }
示例#2
0
 public static int has_value_byindex(cef_v8value_t* self, int index)
 {
     has_value_byindex_delegate d;
     var p = self->_has_value_byindex;
     if (p == _p1d) { d = _d1d; }
     else
     {
         d = (has_value_byindex_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_value_byindex_delegate));
         if (_p1d == IntPtr.Zero) { _d1d = d; _p1d = p; }
     }
     return d(self, index);
 }