GroveEngine/tests/visual/test_with_modules_include.cpp
StillHammer 0540fbf526 fix: Resolve bgfx Frame 1 crash on Windows DLL + MinGW GCC 15 compatibility
- Add BGFX_CONFIG_MULTITHREADED=0 to fix TLS crash when bgfx runs from DLL
- Add -include stdint.h for MinGW GCC 15+ compatibility with bgfx third-party code
- Guard SDL2-dependent visual tests with if(SDL2_FOUND)
- Clean up debug logging in BgfxDevice::frame() and BgfxRendererModule::process()
- Re-enable all modules in test_full_stack_interactive.cpp
- Add grove::fs namespace for cross-platform filesystem operations
- Add InputModule C export for feedEvent across DLL boundary

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-30 11:03:06 +07:00

33 lines
853 B
C++

/**
* Test with modules/ in include path (like test_progressive)
* This will tell us if adding modules/ to includes causes the crash
*/
#include <fstream>
#include <iostream>
#include <SDL.h>
#include <spdlog/spdlog.h>
#include <grove/IntraIOManager.h>
#include <grove/ModuleLoader.h>
#undef main
int main(int argc, char* argv[]) {
std::ofstream log("modules_include_test.log");
log << "=== Modules Include Test ===" << std::endl;
log << "Testing with modules/ in include directories" << std::endl;
log.flush();
std::cout << "If you see this, adding modules/ to includes doesn't crash" << std::endl;
log << "Success - no crash!" << std::endl;
log.close();
std::cout << "Check modules_include_test.log" << std::endl;
std::cout << "\nPress Enter to exit..." << std::endl;
std::cin.get();
return 0;
}