This file contains 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
// Dedicated to the public domain as per the Creative Commons CC0 | |
// (https://creativecommons.org/about/cc0/). | |
// Compile with C++11 (i.e. -std=c++11) | |
// Tests the behavior of Windows named pipes regarding the lifecycle of | |
// connections. | |
// | |
// This test demonstrates various ways that Wine (as of 1.9.12) differs from | |
// Windows: |
This file contains 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
bool BitField(const char* label, unsigned* bits, unsigned* hoverIndex) | |
{ | |
unsigned val = *bits; | |
ImGuiWindow* window = GetCurrentWindow(); | |
if (window->SkipItems) | |
return false; | |
unsigned oldFlags = window->Flags; | |
ImGuiContext* g = ImGui::GetCurrentContext(); |