public static void get_switches(cef_command_line_t *self, cef_string_map *switches) { get_switches_delegate d; var p = self->_get_switches; if (p == _p10) { d = _d10; } else { d = (get_switches_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_switches_delegate)); if (_p10 == IntPtr.Zero) { _d10 = d; _p10 = p; } } d(self, switches); }
public static void get_switches(cef_command_line_t* self, cef_string_map* switches) { get_switches_delegate d; var p = self->_get_switches; if (p == _p10) { d = _d10; } else { d = (get_switches_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_switches_delegate)); if (_p10 == IntPtr.Zero) { _d10 = d; _p10 = p; } } d(self, switches); }