8000 Add pre-defined macro `__VERSION__` like a gcc, clang, msvc... etc · Issue #2150 · cc65/cc65 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Add pre-defined macro __VERSION__ like a gcc, clang, msvc... etc #2150
Closed
@RodrigoDornelles

Description

@RodrigoDornelles

an interesting macro to embed in the program where the compiler was used, such as semantic version or hash of the commit. in the old documentation that CC65 has this information but it doesn't seem to be present anymore.

rodrigo@mac 3bc-lang % ./bin/3bc -i
> VERSION: 0.1.4 (dirty-25a9c41)
> COMPILER: Apple LLVM 12.0.0 (clang-1200.0.32.29)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0