示例#1
0
        public static cef_v8value_t *execute_function_with_context(cef_v8value_t *self, cef_v8context_t *context, cef_v8value_t * @object, UIntPtr argumentsCount, cef_v8value_t **arguments)
        {
            execute_function_with_context_delegate d;
            var p = self->_execute_function_with_context;

            if (p == _p2e)
            {
                d = _d2e;
            }
            else
            {
                d = (execute_function_with_context_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(execute_function_with_context_delegate));
                if (_p2e == IntPtr.Zero)
                {
                    _d2e = d; _p2e = p;
                }
            }
            return(d(self, context, @object, argumentsCount, arguments));
        }
示例#2
0
 public static cef_v8value_t* execute_function_with_context(cef_v8value_t* self, cef_v8context_t* context, cef_v8value_t* @object, UIntPtr argumentsCount, cef_v8value_t** arguments)
 {
     execute_function_with_context_delegate d;
     var p = self->_execute_function_with_context;
     if (p == _p2e) { d = _d2e; }
     else
     {
         d = (execute_function_with_context_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(execute_function_with_context_delegate));
         if (_p2e == IntPtr.Zero) { _d2e = d; _p2e = p; }
     }
     return d(self, context, @object, argumentsCount, arguments);
 }