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

Conditional compilation #49

Open
lightclient opened this issue May 12, 2021 · 0 comments
Open

Conditional compilation #49

lightclient opened this issue May 12, 2021 · 0 comments
Labels
A-assembler Area: assembler C-enhance Category: a request for an improvement E-medium Experience: of moderate difficulty

Comments

@lightclient
Copy link
Contributor

Sometimes it would be nice to compile things in based on a flag. For example, maybe you want overflow detection to be optional. Here a couple potential approaches:

%import_if(foo, "safemath.etk")
%import_if(!foo, "unsafemath.etk")

or

#if safe_overflow
...
#endif

I think I prefer the latter because I expect inline usage to be common for a couple quick ops.

@SamWilsn SamWilsn added A-assembler Area: assembler C-enhance Category: a request for an improvement labels May 18, 2021
@lightclient lightclient added the E-medium Experience: of moderate difficulty label Jul 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-assembler Area: assembler C-enhance Category: a request for an improvement E-medium Experience: of moderate difficulty
Projects
None yet
Development

No branches or pull requests

2 participants