-
-
Couldn't load subscription status.
- Fork 2.8k
[rlsw] c++ support #5291
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
[rlsw] c++ support #5291
Conversation
| /* Pixel color computation */ \ | ||
| float wRcp = 1.0f/w; \ | ||
| float srcColor[4] = { \ | ||
| color[0]*wRcp, \ | ||
| color[1]*wRcp, \ | ||
| color[2]*wRcp, \ | ||
| color[3]*wRcp \ | ||
| }; \ | ||
| \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this moved?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the goto; it is illegal to bypass the initialization of a local variable in cpp. Even if it's not used.
|
@alexgb0 Added a review for some minor formatting changes |
|
Sorry, didn't pay attention |
|
@alexgb0 Looks good, merging. Thanks for the review! |
Fixes
rlswto be able to compile in C/C++.Most of the problems comes from casting
void*to something else, in the macros I had to move some variables declaration too.Tested in win10 MSVC