first commit
This commit is contained in:
commit
5893b00dd2
1669 changed files with 1982740 additions and 0 deletions
25
libraries/FastLED/tests/doctest_main.cpp
Normal file
25
libraries/FastLED/tests/doctest_main.cpp
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#define DOCTEST_CONFIG_IMPLEMENT
|
||||
#include "doctest.h"
|
||||
|
||||
// This file contains the main function for doctest
|
||||
// It will be compiled once and linked to all test executables
|
||||
|
||||
#ifdef _WIN32
|
||||
// Windows-specific entry point
|
||||
#include <windows.h>
|
||||
|
||||
// Define the main entry point for Windows
|
||||
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR lpCmdLine, INT nCmdShow) {
|
||||
return doctest::Context().run();
|
||||
}
|
||||
|
||||
// Also provide a standard main for compatibility
|
||||
int main(int argc, char** argv) {
|
||||
return doctest::Context(argc, argv).run();
|
||||
}
|
||||
#else
|
||||
// Standard entry point for non-Windows platforms
|
||||
int main(int argc, char** argv) {
|
||||
return doctest::Context(argc, argv).run();
|
||||
}
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue