src/popupwin.c
static void
popup_close_and_callback(win_T *wp, typval_T *arg)
{
    int id = wp->w_id;

    // Just in case a check higher up is missing.
    if (wp == curwin && ERROR_IF_POPUP_WINDOW)
	return;

    if (wp->w_close_cb.cb_name != NULL)
	// Careful: This may make "wp" invalid.
	invoke_popup_callback(wp, arg);

    popup_close(id);
}
/*
 * Close popup "wp" and invoke any close callback for it.
 */
Close popup "wp" and invoke any close callback for it.
Close popup " wp " and invoke any close callback for it .
static void
popup_close_and_callback(win_T *wp, typval_T *arg)
{
    int id = wp->w_id;
    if (wp == curwin && ERROR_IF_POPUP_WINDOW)
	return;
    if (wp->w_close_cb.cb_name != NULL)
	invoke_popup_callback(wp, arg);
    popup_close(id);
}
static void popup_close_and_callback ( win_T * wp , typval_T * arg ) { int id = wp -> w_id ; if ( wp == curwin && ERROR_IF_POPUP_WINDOW ) return ; if ( wp -> w_close_cb . cb_name != NULL ) invoke_popup_callback ( wp , arg ) ; popup_close ( id ) ; }
Close popup "wp" and invoke any close callback for it.
Close popup " wp " and invoke any close callback for it .
// Just in case a check higher up is missing. // Careful: This may make "wp" invalid.