]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/palmos/main.cpp
Merge in from trunk r64802 - r68625
[wxWidgets.git] / src / palmos / main.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/palmos/main.cpp
3// Purpose: wxEnter for Palm OS
4// Author: William Osborne - minimal working wxPalmOS port
5// Modified by:
6// Created: 10/07/04
7// RCS-ID: $Id$
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12// ============================================================================
13// declarations
14// ============================================================================
15
16// ----------------------------------------------------------------------------
17// headers
18// ----------------------------------------------------------------------------
19
20// For compilers that support precompilation, includes "wx.h".
21#include "wx/wxprec.h"
22
23#ifdef __BORLANDC__
24 #pragma hdrstop
25#endif
26
27#ifndef WX_PRECOMP
28 #include "wx/event.h"
29 #include "wx/app.h"
30#endif //WX_PRECOMP
31
32#include "wx/cmdline.h"
33
34#if wxUSE_GUI
35
36// ============================================================================
37// implementation: various entry points
38// ============================================================================
39
40// ----------------------------------------------------------------------------
41// Platform-specific wxEntry
42// ----------------------------------------------------------------------------
43
44int wxEntry()
45{
46 /* There is no command line in PalmOS. For now generate a fake argument
47 * list. Later this may be changed to reflect the application launch code
48 */
49 static const int argc = 0;
50 wxChar **argv = new wxChar *[argc + 1];
51
52 // argv[] must be NULL-terminated
53 argv[argc] = NULL;
54
55 return wxEntry(const_cast<int>(argc), argv);
56}
57
58#endif // wxUSE_GUI