public static void append_switch_with_value(cef_command_line_t *self, cef_string_t *name, cef_string_t *value)
        {
            append_switch_with_value_delegate d;
            var p = self->_append_switch_with_value;

            if (p == _p12)
            {
                d = _d12;
            }
            else
            {
                d = (append_switch_with_value_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(append_switch_with_value_delegate));
                if (_p12 == IntPtr.Zero)
                {
                    _d12 = d; _p12 = p;
                }
            }
            d(self, name, value);
        }
示例#2
0
 public static void append_switch_with_value(cef_command_line_t* self, cef_string_t* name, cef_string_t* value)
 {
     append_switch_with_value_delegate d;
     var p = self->_append_switch_with_value;
     if (p == _p12) { d = _d12; }
     else
     {
         d = (append_switch_with_value_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(append_switch_with_value_delegate));
         if (_p12 == IntPtr.Zero) { _d12 = d; _p12 = p; }
     }
     d(self, name, value);
 }