STR 2708: simple inline hint may reduce executable size quite a lot.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9082 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
dc7ac4e770
commit
bc1b17056a
@ -353,7 +353,7 @@ void Fl_Menu_Item_Type::write_code1() {
|
||||
const char* cn = callback_name();
|
||||
const char* ut = user_data_type() ? user_data_type() : "void*";
|
||||
write_public(0);
|
||||
write_h(" void %s_i(Fl_Menu_*, %s);\n", cn, ut);
|
||||
write_h(" inline void %s_i(Fl_Menu_*, %s);\n", cn, ut);
|
||||
write_h(" static void %s(Fl_Menu_*, %s);\n", cn, ut);
|
||||
}
|
||||
}
|
||||
|
@ -2073,7 +2073,7 @@ void Fl_Widget_Type::write_code1() {
|
||||
const char* cn = callback_name();
|
||||
const char* ut = user_data_type() ? user_data_type() : "void*";
|
||||
write_public(0);
|
||||
write_h(" void %s_i(%s*, %s);\n", cn, t, ut);
|
||||
write_h(" inline void %s_i(%s*, %s);\n", cn, t, ut);
|
||||
write_h(" static void %s(%s*, %s);\n", cn, t, ut);
|
||||
}
|
||||
// figure out if local variable will be used (prevent compiler warnings):
|
||||
|
Loading…
Reference in New Issue
Block a user