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

Can fruit be used with C language? #142

Closed
ovirovkin opened this issue May 19, 2022 · 2 comments
Closed

Can fruit be used with C language? #142

ovirovkin opened this issue May 19, 2022 · 2 comments

Comments

@ovirovkin
Copy link

It's clearly states that it supports C++, but I wonder if it can be used on C projects too?

@poletti-marco
Copy link
Contributor

Hi, strictly speaking no, if you include fruit.h in a file compiled as C code, it will fail.

However, C is mostly a superset of C++ so if you have a C codebase and want to use Fruit you could start compiling it in C++ mode (which might work with the code exactly as is or with minor adjustments) and then you can use Fruit in it.

@ovirovkin
Copy link
Author

@poletti-marco thank you for your replay, it helps!

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

No branches or pull requests

2 participants