コード例 #1
0
        public static void append_switch(cef_command_line_t *self, cef_string_t *name)
        {
            append_switch_delegate d;
            var p = self->_append_switch;

            if (p == _p11)
            {
                d = _d11;
            }
            else
            {
                d = (append_switch_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(append_switch_delegate));
                if (_p11 == IntPtr.Zero)
                {
                    _d11 = d; _p11 = p;
                }
            }
            d(self, name);
        }
コード例 #2
0
ファイル: cef_command_line_t.g.cs プロジェクト: rajsite/lvcef
 public static void append_switch(cef_command_line_t* self, cef_string_t* name)
 {
     append_switch_delegate d;
     var p = self->_append_switch;
     if (p == _p11) { d = _d11; }
     else
     {
         d = (append_switch_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(append_switch_delegate));
         if (_p11 == IntPtr.Zero) { _d11 = d; _p11 = p; }
     }
     d(self, name);
 }