File indexing completed on 2025-01-18 10:03:24
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 #ifndef Draw_Main_HeaderFile
0025 #define Draw_Main_HeaderFile
0026
0027 #include <Draw_Appli.hxx>
0028 #include <Standard_PCharacter.hxx>
0029
0030 typedef void (*FDraw_InitAppli)(Draw_Interpretor&);
0031
0032 Standard_EXPORT Standard_Integer Draw_Main (Standard_Integer argc, Standard_PCharacter argv[], const FDraw_InitAppli Draw_InitAppli);
0033
0034
0035 #ifdef _WIN32
0036
0037 #include <windows.h>
0038
0039 Standard_EXPORT Standard_Integer Draw_WinMain (HINSTANCE hInstance,
0040 HINSTANCE hPrevinstance,
0041 LPSTR lpCmdLine,
0042 Standard_Integer nCmdShow,
0043 const FDraw_InitAppli Draw_InitAppli);
0044
0045
0046 #define DRAW_MAIN Standard_Integer PASCAL WinMain (HINSTANCE hInstance, HINSTANCE hPrevinstance, LPSTR lpCmdLine, Standard_Integer nCmdShow) \
0047 { return Draw_WinMain (hInstance, hPrevinstance, lpCmdLine, nCmdShow, Draw_InitAppli); } \
0048 \
0049 int main (int argc, char* argv[]) \
0050 { return Draw_Main (argc, argv, Draw_InitAppli); }
0051
0052 #else
0053
0054
0055 #define DRAW_MAIN int main (Standard_Integer argc, char* argv[]) \
0056 { return Draw_Main (argc, argv, Draw_InitAppli); }
0057
0058 #endif
0059
0060 #endif