-
Notifications
You must be signed in to change notification settings - Fork 0
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
fixed supported code for clang. fix build options for macos system #62
Conversation
kmilo9999
commented
Jul 6, 2022
- Fixed code to supres c++ clang errors.
- Fixed cmake scripts for macos and choreograph for clang
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.
Just needs a run though the linter and a couple additions to the README I think. Looking good! This is the perfect size for a PR, nice work
libs/Texture/Texture.cpp
Outdated
#if (!defined(__APPLE__)) | ||
if (paths.size() == 0) |
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.
I'd run everything through the linter again to fix the tabbing here. Is it usually #if
or #IF
? Whatever's best practice
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.
There is no rule about preprocesor directives. The convention is to CAPS the name of the macros. Let's leave #if
.
I ran the formatter.
#if (!defined(__APPLE__)) | ||
if (m_controller_app.get_movie_state() == MOVIE_RECORD) | ||
{ | ||
m_controller_app.stop_movie(); | ||
} | ||
#endif |
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.
Are you essentially turning off some features that don't work on Mac? I would indicate any OS differences in the README
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.
ok. I'll add this to the readme.
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.
Awesome! Just needs the notes in the readme
I added as part of #51 |