-
-
Notifications
You must be signed in to change notification settings - Fork 197
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Zen C outputs a #define assert(cond, ...) to the C file but this easily gets redefined by included C libraries, like assert.h on macOS which is often included in other standard libraries or open-source projects.
To Reproduce
Steps to reproduce the behavior:
- Include https://github.com/septag/dmon/blob/master/dmon.h
- Build Zen C program with an
assertcall in it. - See C errors.
Expected behavior
Zen C defines its own assert that doesn't clash with the standard assert and rewrites all assert() calls in Zen C to this, e.g. __zenc_assert().
Environment (please complete the following information):
- OS: macOS
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working