Esempio n. 1
0
        public static cef_v8handler_t *get_function_handler(cef_v8value_t *self)
        {
            get_function_handler_delegate d;
            var p = self->_get_function_handler;

            if (p == _p2c)
            {
                d = _d2c;
            }
            else
            {
                d = (get_function_handler_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_function_handler_delegate));
                if (_p2c == IntPtr.Zero)
                {
                    _d2c = d; _p2c = p;
                }
            }
            return(d(self));
        }
Esempio n. 2
0
 public static cef_v8handler_t* get_function_handler(cef_v8value_t* self)
 {
     get_function_handler_delegate d;
     var p = self->_get_function_handler;
     if (p == _p2c) { d = _d2c; }
     else
     {
         d = (get_function_handler_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_function_handler_delegate));
         if (_p2c == IntPtr.Zero) { _d2c = d; _p2c = p; }
     }
     return d(self);
 }