public static cef_domnode_t *get_document(cef_domdocument_t *self) { get_document_delegate d; var p = self->_get_document; if (p == _p4) { d = _d4; } else { d = (get_document_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_document_delegate)); if (_p4 == IntPtr.Zero) { _d4 = d; _p4 = p; } } return(d(self)); }
public static cef_domdocument_t* get_document(cef_domnode_t* self) { get_document_delegate d; var p = self->_get_document; if (p == _pe) { d = _de; } else { d = (get_document_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_document_delegate)); if (_pe == IntPtr.Zero) { _de = d; _pe = p; } } return d(self); }