Small fixes again
This commit is contained in:
@@ -503,11 +503,13 @@ begin
|
||||
else
|
||||
Add(Format('function %s.%s%s', [CppToPas(Classe.Name + ' *'), ProcName, EndChar]));
|
||||
end;
|
||||
//Body
|
||||
if (ResultType.Typ = '') or (ResultType.Typ = 'void') then
|
||||
// Implementation body
|
||||
if IsConstructor then
|
||||
BodyPas := Format(' CPlusObject := %s_%s%s', [Classe.Name, ProcName, SelfParamImpl])
|
||||
else if (ResultType.Typ = '') or (ResultType.Typ = 'void') then
|
||||
BodyPas := Format(' %s_%s%s', [Classe.Name, ProcName, SelfParamImpl])
|
||||
else
|
||||
BodyPas := Format(' %s_%s%s', [Classe.Name, ProcName, SelfParamImpl]);
|
||||
BodyPas := Format(' Result := %s_%s%s', [Classe.Name, ProcName, SelfParamImpl]);
|
||||
end;
|
||||
|
||||
procedure TFunction.Ends;
|
||||
|
||||
@@ -105,6 +105,11 @@ begin
|
||||
FPas := TStringList.Create;
|
||||
FPas.Add(PasLicense);
|
||||
FPas.Add('unit ' + LowerCase(FFileName) + ';');
|
||||
FPas.Add('');
|
||||
FPas.Add('interface');
|
||||
FPas.Add('');
|
||||
FPas.Add('uses');
|
||||
FPas.Add(' beobj;');
|
||||
FInterfacePas := TStringList.Create;
|
||||
FImplementationPas := TStringList.Create;
|
||||
FImportFuncsPas := TStringList.Create;
|
||||
|
||||
Reference in New Issue
Block a user