summaryrefslogtreecommitdiffstats
path: root/private/os2/inc/os2.h
blob: e92adf5d5cffbf45bb9e13cc57bc9a42df43df92 (plain) (blame)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/*static char *SCCSID = "@(#)os2.h   13.5 89/06/12";*/
/****************************** Module Header ******************************\
*
* Module Name: OS2.H
*
* This is the top level include file that includes all the files necessary
* for writing an OS/2 application.
*
* Copyright (c) 1987  Microsoft Corporation
* Copyright (c) 1987  IBM Corporation
*
\***************************************************************************/
 
#define OS2_INCLUDED
#define OS2_API32

#ifdef NO_EXT_KEYS
#define _syscall
#define based
#define near
#define far
#define cdecl
#endif // NO_EXT_KEYS

/* Common definitions */
 
#include <ntdef.h>
 
/* OS/2 Base Include File */
 
#include <os2v20.h>
 
/* OS/2 Presentation Manager Include File */
 
// NOT INCLUDED FOR NOW - #include <pm.h>


//
// If debugging support enabled, define an ASSERT macro that works.  Otherwise
// define the ASSERT macro to expand to an empty expression.
//

#if DBG
VOID
RtlAssert(
    IN PVOID FailedAssertion,
    IN PVOID FileName,
    IN ULONG LineNumber
    );

#define ASSERT( exp ) \
    if (!(exp)) \
        RtlAssert( #exp, __FILE__, __LINE__ )

#else
#define ASSERT( exp )
#endif // DBG


//
// Fast primitives to zero and move memory
//

VOID
RtlZeroMemory (
   IN PVOID Destination,
   IN ULONG Length
   );

VOID
RtlMoveMemory (
   IN PVOID Destination,
   IN PVOID Source,
   IN ULONG Length
   );


//
//  Debugging support functions.
//

VOID
RtlCommandLineInterpreter(
    PCH Prompt,
    PCH DefaultVariableVector[] OPTIONAL,
    PCH InitialCommandLine OPTIONAL
    );

VOID
DbgBreakPoint(
    VOID
    );

VOID
DbgCommand(
    PCH Command,
    ULONG Parameter
    );