#is_constant_evaluated

1 messages · Page 1 of 1 (latest)

magic pewter
#

Does Zig have something equivalent to std::is_constant_evaluated?
The use case is I have a primitive implemented in assembly as Zig doesn't yet have a built-in for it (pext), but I also do want to run the code at comptime.

#

Answering myself: @inComptime exists and is what I want.