1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-12-23 07:48:50 -05:00
Simba/Units/MMLCore/mufasabase.pas
Merlijn Wajer 45b215efd9 Simba: Cleanups in several units.
os_windows probably _DOES_ _NOT_ compile yet.
2011-02-21 15:56:17 +01:00

43 lines
616 B
ObjectPascal

unit mufasabase;
{$mode objfpc}{$H+}
interface
{$undef mDebug}
uses
Classes, SysUtils{$ifdef MSWindows},windows{$endif};
procedure mDebugLn( s : string);overload;
procedure mDebugLn( s : string; f : array of const);overload;
procedure InitmDebug;
procedure FreemDebug;
implementation
var
CanDebug : boolean = false;
procedure mDebugLn(s: string);
begin
if CanDebug then
Writeln(s);
end;
procedure mDebugLn(s: string; f: array of const); overload;
begin
mDebugLn(format(s,f));
end;
procedure InitmDebug;
begin
CanDebug := true;
end;
procedure FreemDebug;
begin
CanDebug := false;
end;
end.