- 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>
48 lines
1.3 KiB
C++
48 lines
1.3 KiB
C++
/**
|
|
* Test: IntraIOManager::getInstance() only
|
|
* Find if IIO singleton initialization is the problem
|
|
*/
|
|
|
|
#include <fstream>
|
|
#include <iostream>
|
|
#include <grove/IntraIOManager.h>
|
|
|
|
#undef main
|
|
|
|
int main(int argc, char* argv[]) {
|
|
std::ofstream log("iio_only_test.log");
|
|
log << "=== IIO Only Test ===" << std::endl;
|
|
log << "Step 1: Program started" << std::endl;
|
|
log.flush();
|
|
|
|
std::cout << "Step 1: Program started" << std::endl;
|
|
|
|
log << "Step 2: Calling getInstance()..." << std::endl;
|
|
log.flush();
|
|
|
|
try {
|
|
auto& ioManager = grove::IntraIOManager::getInstance();
|
|
log << "Step 4: getInstance() SUCCESS" << std::endl;
|
|
log.flush();
|
|
|
|
log << "Step 5: Test passed!" << std::endl;
|
|
} catch (const std::exception& e) {
|
|
log << "ERROR: " << e.what() << std::endl;
|
|
std::cerr << "ERROR: " << e.what() << std::endl;
|
|
return 1;
|
|
} catch (...) {
|
|
log << "ERROR: Unknown exception" << std::endl;
|
|
std::cerr << "ERROR: Unknown exception" << std::endl;
|
|
return 1;
|
|
}
|
|
|
|
log << "Success - no crash!" << std::endl;
|
|
log.close();
|
|
|
|
std::cout << "Success! Check iio_only_test.log" << std::endl;
|
|
std::cout << "\nPress Enter to exit..." << std::endl;
|
|
std::cin.get();
|
|
|
|
return 0;
|
|
}
|