In a Release build, macros like `CSFML_CHECK_RETURN` expand into nothing more than a cast-to-void which is meant to silence compiler warnings about unused variables. By declaring a temporary inside the macro argument, we ensure that debug builds behave the same as always but Release builds expand these macros into truly no code thus ensuring these temporary variables are never created in the first place so there is now nothing that we have to cast to void.
CSFML - Simple and Fast Multimedia Library for C
SFML is a simple, fast, cross-platform and object-oriented multimedia API. It provides access to windowing, graphics, audio and network. It is originally written in C++, and this project is its official binding for the C language.
Authors
- Laurent Gomila - main developer (laurent@sfml-dev.org)
- Lukas Dürrenberger - active maintainer (eXpl0it3r@sfml-dev.org)
- Zachariah Brown (contact@zbrown.net)
Download
You can get the latest official release on SFML website. You can also get the current development version from the Git repository.
Learn
There is no tutorial for CSFML, but since it's a binding you can use the C++ resources:
- The official tutorials
- The online API documentation
- The community wiki
- The community forum (or French)
Of course, you can also find the CSFML API documentation in the SDK.
Building
Set SFML_DIR to a directory containing the SFMLConfig.cmake file, usually located at lib/cmake/SFML.
Contribute
SFML and CSFML are open-source projects, and they need your help to go on growing and improving. Don't hesitate to post suggestions or bug reports on the forum, or post new bugs/features requests on the issue tracker. You can even fork the project on GitHub, maintain your own version and send us pull requests periodically to merge your work.
