Ejemplo n.º 1
0
        public static cef_v8exception_t *get_exception(cef_v8value_t *self)
        {
            get_exception_delegate d;
            var p = self->_get_exception;

            if (p == _p18)
            {
                d = _d18;
            }
            else
            {
                d = (get_exception_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_exception_delegate));
                if (_p18 == IntPtr.Zero)
                {
                    _d18 = d; _p18 = p;
                }
            }
            return(d(self));
        }
Ejemplo n.º 2
0
 public static cef_v8exception_t* get_exception(cef_v8value_t* self)
 {
     get_exception_delegate d;
     var p = self->_get_exception;
     if (p == _p18) { d = _d18; }
     else
     {
         d = (get_exception_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_exception_delegate));
         if (_p18 == IntPtr.Zero) { _d18 = d; _p18 = p; }
     }
     return d(self);
 }