benilla-re systems structs docs

s_confirmCloseCallback

global · core

Address
0x883f5c · 4 bytes, up to 0x883f5f
Type
void *
Meaning
Holds the confirm-close callback, or null
Confidence
verified, proof one
Finding
core/input#close-and-quit

Finding: Close and quit in core: window input

A close request (WM_CLOSE or SC_CLOSE) and WM_QUIT ask the confirm-close callback first, and quit only on a nonzero answer. With no callback the answer is 1. The client installs one in its context start handler and removes it in its stop handler: it closes the current context and answers 0, so closing the window tears the context down at the end of that tick, dispatching categories 3 and 4, before the loop ends.

The derivation is in the doc.