Exemple #1
0
        public static int has_value_bykey(cef_v8value_t *self, cef_string_t *key)
        {
            has_value_bykey_delegate d;
            var p = self->_has_value_bykey;

            if (p == _p1c)
            {
                d = _d1c;
            }
            else
            {
                d = (has_value_bykey_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_value_bykey_delegate));
                if (_p1c == IntPtr.Zero)
                {
                    _d1c = d; _p1c = p;
                }
            }
            return(d(self, key));
        }
Exemple #2
0
 public static int has_value_bykey(cef_v8value_t* self, cef_string_t* key)
 {
     has_value_bykey_delegate d;
     var p = self->_has_value_bykey;
     if (p == _p1c) { d = _d1c; }
     else
     {
         d = (has_value_bykey_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_value_bykey_delegate));
         if (_p1c == IntPtr.Zero) { _d1c = d; _p1c = p; }
     }
     return d(self, key);
 }