public static int has_switches(cef_command_line_t *self)
        {
            has_switches_delegate d;
            var p = self->_has_switches;

            if (p == _pd)
            {
                d = _dd;
            }
            else
            {
                d = (has_switches_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_switches_delegate));
                if (_pd == IntPtr.Zero)
                {
                    _dd = d; _pd = p;
                }
            }
            return(d(self));
        }
Пример #2
0
 public static int has_switches(cef_command_line_t* self)
 {
     has_switches_delegate d;
     var p = self->_has_switches;
     if (p == _pd) { d = _dd; }
     else
     {
         d = (has_switches_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_switches_delegate));
         if (_pd == IntPtr.Zero) { _dd = d; _pd = p; }
     }
     return d(self);
 }