Skip to content

How to use macro constants #65

Closed
Closed
@nh2

Description

@nh2

I simply want to use a macro constant defined like

#define MYCONSTANT 1

in a .chs file, like

x :: CInt
x = MYCONSTANT

How do I do this?

It would be nice if that was part of the documentation; it explains all kind of complicated things like enum define etc, but I can't figure this simple one out.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions