This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ime_switcher.cpp (98% vibe coded ;) | |
| // A tray program to switch IME between en/ch with Right CTRL only. | |
| // Build with Visual Studio 2022 (x64 Native Tools): | |
| // cl /EHsc /std:c++17 ime_switcher.cpp user32.lib shell32.lib gdi32.lib imm32.lib /link /SUBSYSTEM:WINDOWS | |
| #define UNICODE | |
| #define _UNICODE | |
| #include <windows.h> | |
| #include <shellapi.h> | |
| #include <imm.h> | |
| #include <chrono> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef MODERN_REF_HPP | |
| #define MODERN_REF_HPP | |
| #include <type_traits> | |
| #include <functional> | |
| #include <optional> | |
| #include <cassert> | |
| /** | |
| * @brief Ref<T> - A zero-overhead, nullable, rebindable smart reference. |