Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //msvc doesn't seem to like me printing to stdout inside winmain,
- //so i'm doing this now lol
- #ifndef _ENTRY_POINT_H
- #define _ENTRY_POINT_H
- #ifndef WINDOWS_LEAN_AND_MEAN
- # define WINDOWS_LEAN_AND_MEAN
- # include <windows.h>
- # undef WINDOWS_LEAN_AND_MEAN
- #else
- # include <windows.h>
- #endif
- #ifdef RELEASE_BUILD
- #define ENTRY_POINT(HINSTANCE_hInst, HINSTANCE_hPrevInst, LPSTR_args, int_nCmdShow) \
- WinMain(HINSTANCE_hInst, HINSTANCE_hPrevInst, LPSTR_args, int_nCmdShow)
- #else
- #define ENTRY_POINT(HINSTANCE_hInst, HINSTANCE_hPrevInst, LPSTR_args, int_nCmdShow) \
- _WinMain(HINSTANCE, HINSTANCE, LPSTR, int); \
- int main(){ return _WinMain(GetModuleHandleA(NULL), NULL, GetCommandLineA(), SW_SHOW); } \
- int WINAPI _WinMain(HINSTANCE_hInst, HINSTANCE_hPrevInst, LPSTR_args, int_nCmdShow)
- #endif
- #endif /* _ENTRY_POINT_H */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement