public static void init_from_argv(cef_command_line_t *self, int argc, byte **argv)
        {
            init_from_argv_delegate d;
            var p = self->_init_from_argv;

            if (p == _p6)
            {
                d = _d6;
            }
            else
            {
                d = (init_from_argv_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(init_from_argv_delegate));
                if (_p6 == IntPtr.Zero)
                {
                    _d6 = d; _p6 = p;
                }
            }
            d(self, argc, argv);
        }
示例#2
0
 public static void init_from_argv(cef_command_line_t* self, int argc, byte** argv)
 {
     init_from_argv_delegate d;
     var p = self->_init_from_argv;
     if (p == _p6) { d = _d6; }
     else
     {
         d = (init_from_argv_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(init_from_argv_delegate));
         if (_p6 == IntPtr.Zero) { _d6 = d; _p6 = p; }
     }
     d(self, argc, argv);
 }