-
Notifications
You must be signed in to change notification settings - Fork 145
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
not support MSVC #26
Comments
Not really. MSVC has no practical equivalent to the cleanup attribute, which is why there is a disclaimer that this only works for GNU C. |
Clang and Intel C Compiler supposedly support this. |
Yes, clang and icc count as a GNU-flavored C, since they want to match GCC's general behavior. But MSVC does not, and therefore cannot work with this library. |
I wonder if MSVC's only "__try" / "__finally" can be used - although that's probably not good idea, but I was looking for RAII methods in "C" and just found this. |
We use C in windows with MSVC compiler, but
__attribute__((cleanup))
does not work in MSVC. Is is possible to support MSVC?The text was updated successfully, but these errors were encountered: