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); }
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); }