Files
eepp/include/eepp/system/singletondeclarations.hpp
T
Martín Lucas Golini 861b2bc3c4 Fix driver-dependent patterned border rasterization
Snap dotted and dashed border geometry to physical pixels so centered
  patterns cannot begin on ambiguous half-pixel coordinates. This makes
  rectangular dot placement deterministic across llvmpipe and macOS GPU
  drivers.

  Update the old Reddit golden image to use the snapped dot phase.

Optimize compile-time header dependencies

  - Extract lightweight singleton declarations.
  - Remove unnecessary core.hpp, stream, pack, and container includes.
  - Add explicit direct dependencies across system, network, graphics, and syntax headers.
  - Forward-declare stream and pack types where possible.
  - Normalize selected network headers to LF.
2026-08-02 19:20:07 -03:00

25 lines
904 B
C++

#ifndef EE_SYSTEMSINGLETONDECLARATIONS_HPP
#define EE_SYSTEMSINGLETONDECLARATIONS_HPP
/** Declarations shared by the macro-based singleton implementations.
*
* Keep this header lightweight. The implementation macro and the Singleton template
* require the allocation and synchronization machinery from singleton.hpp, while
* singleton-owning public headers only need these declarations.
*/
#define SINGLETON_DECLARE_HEADERS( T ) \
public: \
static T* createSingleton(); \
\
static T* existsSingleton(); \
\
static bool isShuttingDown(); \
\
static T* instance(); \
\
static void destroySingleton(); \
\
static void detachSingleton();
#endif