Skip to content

Commit

Permalink
Rename macro per feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmatson committed Aug 6, 2022
1 parent c136a8e commit b12c7a8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/internal/catch_default_main.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@

#ifndef __OBJC__

#ifndef CDECL
#ifndef CATCH_INTERNAL_CDECL
#ifdef _MSC_VER
#define CDECL __cdecl
#define CATCH_INTERNAL_CDECL __cdecl
#else
#define CDECL
#define CATCH_INTERNAL_CDECL
#endif
#endif

#if defined(CATCH_CONFIG_WCHAR) && defined(CATCH_PLATFORM_WINDOWS) && defined(_UNICODE) && !defined(DO_NOT_USE_WMAIN)
// Standard C/C++ Win32 Unicode wmain entry point
extern "C" int CDECL wmain (int argc, wchar_t * argv[], wchar_t * []) {
extern "C" int CATCH_INTERNAL_CDECL wmain (int argc, wchar_t * argv[], wchar_t * []) {
#else
// Standard C/C++ main entry point
int CDECL main (int argc, char * argv[]) {
int CATCH_INTERNAL_CDECL main (int argc, char * argv[]) {
#endif

return Catch::Session().run( argc, argv );
Expand Down

0 comments on commit b12c7a8

Please sign in to comment.