From ee967448bae4733aec70ba128062bc3357a2f0df Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Thu, 6 Feb 2025 21:55:19 +1300 Subject: Widget deletion inside callbacks is now safe --- body/c_fl.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'body/c_fl.h') diff --git a/body/c_fl.h b/body/c_fl.h index 51dbedb..b12f560 100644 --- a/body/c_fl.h +++ b/body/c_fl.h @@ -8,6 +8,9 @@ #define FL_GUARD +#include + + extern "C" const short fl_align_center; extern "C" const short fl_align_top; extern "C" const short fl_align_bottom; @@ -61,10 +64,14 @@ extern "C" void fl_flush(); extern "C" void fl_redraw(); +extern "C" short fl_inside_callback; +extern "C" void fl_delete_widget(void * w); + + extern "C" int fl_check(); extern "C" int fl_ready(); extern "C" int fl_wait(); -extern "C" int fl_wait2(double s); +extern "C" double fl_wait2(double s); extern "C" int fl_run(); -- cgit