コード例 #1
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);
        }
コード例 #2
0
ファイル: cef_command_line_t.g.cs プロジェクト: rajsite/lvcef
 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);
 }