mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 18:29:28 +02:00
* pas2jni: Properly handle enums with inline elements.
git-svn-id: trunk@29160 -
This commit is contained in:
parent
771f317f94
commit
830e3ceb0d
@ -424,7 +424,7 @@ var
|
||||
else
|
||||
continue;
|
||||
|
||||
if CurObjName = '' then begin
|
||||
if (CurObjName = '') and (d.DefType <> dtEnum) then begin
|
||||
d.Free;
|
||||
continue;
|
||||
end;
|
||||
@ -530,6 +530,8 @@ var
|
||||
Base:=it.Integers['Base'];
|
||||
ElMax:=it.Integers['Max'];
|
||||
ElType:=TTypeDef(_GetRef(it.Objects['ElType'], TTypeDef));
|
||||
if (ElType <> nil) and (ElType.Name = '') then
|
||||
ElType.Name:=CurObjName + 'El';
|
||||
end;
|
||||
dtConst:
|
||||
with TConstDef(d) do begin
|
||||
|
Loading…
Reference in New Issue
Block a user