Skip to content

Commit

Permalink
Merge pull request #231 from Saxos-Simone/master
Browse files Browse the repository at this point in the history
Fix "fsl_base.pas" conditional defines: IFOPT D+
  • Loading branch information
grahamegrieve authored Mar 5, 2024
2 parents 0f03df3 + 877fc40 commit b817391
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/cda/cda_writer.pas
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ procedure TCDAWriter.WriteCDA(oXml: TXmlBuilder; oDoc: TcdaClinicalDocument);
if (oDT is Tv3PQ) Then
WritePQ(sPath, oXml, sName, oDT as Tv3PQ, bOptional)
Else if (oDT is Tv3CD) Then
WriteCD(sPath, oXml, sName, oDT as Tv3CD, bOptional, true)
WriteCD(sPath, oXml, sName, oDT as Tv3CD, bOptional)
Else if (oDT is Tv3BL) Then
WriteBL(sPath, oXml, sName, oDT as Tv3BL, bOptional)
Else if (oDT is Tv3CS) Then
Expand Down
6 changes: 5 additions & 1 deletion library/fsl/fsl_base.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,9 @@ procedure TFslObject.Free;
clsName := 'n/a';
nmCls := 'n/a';
try
{$IFOPT D+}
nmCls := FNamedClass;
{$ENDIF}
except
nmCls := '??';
end;
Expand Down Expand Up @@ -1523,7 +1525,9 @@ function TFslObject.debugInfo: String;

procedure TFslObject.updateDebugInfo;
begin
{$IFOPT D+}
FDebugInfo := debugInfo;
{$ENDIF}
end;

function TFslObject.ObjectCrossesThreads: boolean;
Expand Down Expand Up @@ -1566,7 +1570,7 @@ function TFslObject.updatedDebugInfo: String;
updateDebugInfo;
except
end;
result := FDebugInfo;
result := {$IFOPT D+}FDebugInfo{$ELSE}''{$ENDIF};
end;

function TFslObject.CheckCondition(bCorrect: Boolean; const sMethod, sMessage: String): Boolean;
Expand Down

0 comments on commit b817391

Please sign in to comment.