// The Void::Log facade's one state per process. Compiled into its own small // library rather than an inline function's static: Windows gives every DLL // that inlines a function its own static, so a sink set in one DLL would // never see the events of another. Every module that includes // links this (it has no dependencies of its own). #include namespace Void::Log::Detail { State& state() { static State s; return s; } } // namespace Void::Log::Detail