summaryrefslogtreecommitdiff
path: root/fluid/function_panel.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2022-02-13 00:54:44 +0100
committerGitHub <noreply@github.com>2022-02-13 00:54:44 +0100
commitc9b44064d205a16790eed7e91ba81365b057c8f1 (patch)
tree2e2cac06ac22a6973cb143d440a398bd1a44c78c /fluid/function_panel.cxx
parent52bfbbc2fac6dd7555a777d38c4f8d8227b41008 (diff)
Fluid: adding feature: Functions can also be "local". (#390)
Before, Functions could only be "static" (keyword static is added) or "global" (prototype is added). This is harmful if the function or method was declared elsewhere. "local" solves that.
Diffstat (limited to 'fluid/function_panel.cxx')
-rw-r--r--fluid/function_panel.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/fluid/function_panel.cxx b/fluid/function_panel.cxx
index 80762df28..8e28df2ad 100644
--- a/fluid/function_panel.cxx
+++ b/fluid/function_panel.cxx
@@ -48,6 +48,7 @@ Fl_Choice *f_public_choice=(Fl_Choice *)0;
Fl_Menu_Item menu_f_public_choice[] = {
{"static", 0, 0, (void*)(0), 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
{"global", 0, 0, (void*)(1), 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
+ {"local", 0, 0, (void*)(2), 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
{0,0,0,0,0,0,0,0,0}
};