Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement preprocessor directive #ifndef #158

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

ChAoSUnItY
Copy link
Collaborator

To prevent redefinition or serving other purposes, we sometimes need to negate the result of defined, however, currently shecc does support neither negation operator in macro scope, e.g. !defined(SOME_MACRO), nor #ifndef. Thus, in this PR, we introduce preprocessor directive #ifndef to solve this issue without massively refactoring frontend codebase (since frontend refactoring is WIP).

@jserv jserv merged commit c0bbf58 into sysprog21:master Nov 7, 2024
4 checks passed
@jserv
Copy link
Collaborator

jserv commented Nov 7, 2024

Thank @ChAoSUnItY for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants