Compare commits

...
Author SHA1 Message Date
J. Nick Koston a1d78cbbf7 [button] Use a user provided default constructor 2026-09-11 21:28:01 -05:00
+3
View File
@@ -24,6 +24,9 @@ void log_button(const char *tag, const char *prefix, const char *type, Button *o
*/
class Button : public EntityBase {
public:
// User provided, not "= default": `new(p) Button()` would zero-fill .bss that is already zero.
Button() {}
/** Press this button. This is called by the front-end.
*
* For implementing buttons, please override press_action.