File: Message.pas

package info (click to toggle)
cevomapgen 39-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 476 kB
  • sloc: pascal: 2,765; xml: 169; makefile: 50
file content (31 lines) | stat: -rw-r--r-- 609 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
unit Message;

{***********************************************************

Project:    C-evo External Map Generator
Copyright:  2024 P Blackman
License:    GPLv3+

General message routine.
(Writeln does not work in Windows, and
Dialogs.ShowMessage does not work in command lime programs)

***********************************************************}

interface
procedure ShowMessage (Msg : string);


implementation {$ifdef lcl} uses Dialogs; {$endif}


procedure ShowMessage (Msg : string);
begin
    {$ifdef lcl}
        Dialogs.ShowMessage(Msg);
    {$else}
        Writeln(Msg);
    {$endif}
end;

end.