summaryrefslogtreecommitdiff
path: root/src/nvUtilities.pas
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2009-09-29 17:26:21 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2009-09-29 17:26:21 +0200
commit9a163a2997462f03005d65438f3766b26dd0418e (patch)
treedbc0678f1b288e5f33a52239b30b9faa3324fe6e /src/nvUtilities.pas
parent2714e10c8f690d07aa8355a5ae1fbf6f03b49ac5 (diff)
downloadfpGUI-9a163a2997462f03005d65438f3766b26dd0418e.tar.xz
Moved ProfileEvent method to new unit.
Signed-off-by: Graeme Geldenhuys <graeme@mastermaths.co.za>
Diffstat (limited to 'src/nvUtilities.pas')
-rw-r--r--src/nvUtilities.pas8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvUtilities.pas b/src/nvUtilities.pas
index db6e8f6c..af10cd89 100644
--- a/src/nvUtilities.pas
+++ b/src/nvUtilities.pas
@@ -27,6 +27,8 @@ Function ExtractNextValueNoTrim(
// Alias method which is the same as Move() but with less confusing name
procedure MemCopy(const src; var dest; size: SizeInt);
+// Allows for debug output and quite disable of output
+procedure ProfileEvent(const AString: string);
implementation
@@ -71,6 +73,12 @@ begin
Move(src, dest, size);
end;
+procedure ProfileEvent(const AString: string);
+begin
+ {$IFDEF DEBUG}
+ writeln('DEBUG: ', AString);
+ {$ENDIF}
+end;
end.