conditional-compilation

Tag

Cards List
#conditional-compilation

C3 0.8.3 Feature flags

Lobsters Hottest · 2026-08-13 Cached

C3 0.8.3 introduces the @feat attribute, a new mechanism for top-level conditional compilation, replacing older @if usage outside generics. The compiler now provides built-in feature flags like WIN32 and LINUX, improving compile-time ordering and IDE support.

0 favorites 0 likes
#conditional-compilation

Conditionally Disabling Code with Comptime in Zig

Mitchell Hashimoto · 2024-09-12 Cached

Mitchell Hashimoto explains how to use Zig's comptime feature to conditionally disable code at compile time, comparing it to approaches in C and Go.

0 favorites 0 likes
← Back to home

Submit Feedback