mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-29 20:32:18 -05:00
61f3c1ce98
Settings in extensions should work now, see test extension.
43 lines
626 B
ObjectPascal
43 lines
626 B
ObjectPascal
unit mufasabase;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
interface
|
|
{$undefine mDebug}
|
|
|
|
uses
|
|
files, 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.
|
|
|