Closed JesseRMeyer closed 11 hours ago
Wouldn't @(disabled=TRACY_DISABLE)
suit your needs here?
Sometimes it does but disabled
still compiles & checks the code. Though more important imo is how procs are handled in when statements more broadly.
This should work now: https://github.com/odin-lang/Odin/commit/657bc88535eb3b160d86fed5f5e5d0d6ea67c78c
As discussed in Discord. Feature request for this to work.
emits the compiler error:
Error: 'empty_proc when !TRACY_ENABLE else proc(ctx: zone_context) {...}' is not a compile-time known constant
Which is currently not considered a bug but could be made to work. The current behavior is unintuitive and feels needlessly restrictive.