Skip to content

Instantly share code, notes, and snippets.

#ifdef __cplusplus
struct void_cast {
inline void_cast( void* x_ ) : x( x_ ) { }
inline void_cast( void const* x_ ) : x( (void*) x_ ) { }
template< typename T > inline operator T() { return (T)x; } // cast to whatever requested
void* x;
};
#define VOID_CAST( x ) void_cast( x )
#else
#define VOID_CAST( x ) x
@Aritile
Aritile / _readme_quarks.md
Created March 29, 2025 00:56 — forked from vurtun/_readme_quarks.md
Quarks: Graphical user interface

gui