source:
downloads/lua-5.1.3/src/wmain.c
@
68
Last change on this file since 68 was 28, checked in by landauf, 16 years ago | |
---|---|
File size: 407 bytes |
Line | |
---|---|
1 | #include <windows.h> |
2 | #include <stdlib.h> /* declaration of __argc and __argv */ |
3 | |
4 | extern int main(int, char **); |
5 | |
6 | int PASCAL WinMain(HINSTANCE hinst, HINSTANCE hprev, LPSTR cmdline, int ncmdshow) |
7 | { |
8 | int rc; |
9 | |
10 | extern int __argc; /* this seems to work for all the compilers we tested, except Watcom compilers */ |
11 | extern char** __argv; |
12 | |
13 | rc = main(__argc, __argv); |
14 | |
15 | return rc; |
16 | } |
Note: See TracBrowser
for help on using the repository browser.