You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not a Zig user (yet), but I was wondering if Zig had anything similar to the line control macros that you see in GCC. I am very interested in using writing programs in Zig using my literate programming environment, which utilize these macros to make debugging possible.
Many thanks!
The text was updated successfully, but these errors were encountered:
Line control macros do not exist in Zig. There is no current plan to implement them, but there probably should be.
The line control macros should probably be in Zig comments, rather than being "macros" (which Zig doesn't have), keywords and first-class syntactic constructs, or a builtin functions. They are not necessary to understand the semantics of the Zig code, and so they would fit nicely into comments for tools that don't care about reading them.
Line control macros can be generalized into source maps. I don't exactly know what information source maps contain, but I expect they can contain details at a higher resolution than line numbers. That may be a better idea than just line control macros.
andrewrk
added
the
proposal
This issue suggests modifications. If it also has the "accepted" label then it is planned.
label
Dec 16, 2018
I'm not a Zig user (yet), but I was wondering if Zig had anything similar to the line control macros that you see in GCC. I am very interested in using writing programs in Zig using my literate programming environment, which utilize these macros to make debugging possible.
Many thanks!
The text was updated successfully, but these errors were encountered: