Example #1
0
        public static int is_bool(cef_v8value_t *self)
        {
            is_bool_delegate d;
            var p = self->_is_bool;

            if (p == _p6)
            {
                d = _d6;
            }
            else
            {
                d = (is_bool_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_bool_delegate));
                if (_p6 == IntPtr.Zero)
                {
                    _d6 = d; _p6 = p;
                }
            }
            return(d(self));
        }
Example #2
0
 public static int is_bool(cef_v8value_t* self)
 {
     is_bool_delegate d;
     var p = self->_is_bool;
     if (p == _p6) { d = _d6; }
     else
     {
         d = (is_bool_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_bool_delegate));
         if (_p6 == IntPtr.Zero) { _d6 = d; _p6 = p; }
     }
     return d(self);
 }