mirror of https://github.com/fltk/fltk
Fixes STR# 3420; fluid crash on certain static functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12531 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
2a3e869210
commit
9c2b0d743f
|
@ -275,6 +275,8 @@ void Fl_Function_Type::write_code1() {
|
|||
if (rtype) {
|
||||
if (!strcmp(rtype,"static")) {is_static = 1; rtype = 0;}
|
||||
else if (!strncmp(rtype, "static ",7)) {is_static = 1; rtype += 7;}
|
||||
}
|
||||
if (rtype) {
|
||||
if (!strcmp(rtype, "virtual")) {is_virtual = 1; rtype = 0;}
|
||||
else if (!strncmp(rtype, "virtual ",8)) {is_virtual = 1; rtype += 8;}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue