# tracy: protect source info via global constant · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/c01aa26bd3715f2426f45f67de944b3192293d37)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: c01aa26bd3715f2426f45f67de944b3192293d37

Requested commit: c01aa26bd3715f2426f45f67de944b3192293d37

Commit: c01aa26bd3715f2426f45f67de944b3192293d37

Tree: 7d67cfa1c0a8668543ab96c451f3aa9142a1d622

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
tracy: protect source info via global constant

When the code is written this way, you get a compile error if the
pointer given to Tracy does not have a static lifetime.

This would have caught the regression in #13315.

```

## Parents

- [46a6d50fdf4d26e8af22fb6a5207b9fab3d0777a](https://git.cafe/gitcafe/zig/commit/46a6d50fdf4d26e8af22fb6a5207b9fab3d0777a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/c01aa26bd3715f2426f45f67de944b3192293d37?format=markdown)
