Updated raylib-cpp header files

This commit is contained in:
2025-09-08 22:06:21 -04:00
parent a0a658ca8a
commit fff611cc72
45 changed files with 2533 additions and 2382 deletions

View File

@@ -11,13 +11,13 @@ namespace raylib {
* Exception used for most raylib-related exceptions.
*/
class RaylibException : public std::runtime_error {
public:
public:
/**
* Construct a runtime exception with the given message.
*
* @param message The message to provide for the exception.
*/
RaylibException(std::string message) throw() : std::runtime_error(message) {
explicit RaylibException(const std::string& message) noexcept : std::runtime_error(message) {
// Nothing
}
@@ -26,13 +26,11 @@ class RaylibException : public std::runtime_error {
*
* @param logLevel The output status to use when outputing.
*/
void TraceLog(int logLevel = LOG_ERROR) {
::TraceLog(logLevel, std::runtime_error::what());
}
void TraceLog(int logLevel = LOG_ERROR) { ::TraceLog(logLevel, std::runtime_error::what()); }
};
} // namespace raylib
} // namespace raylib
using RRaylibException = raylib::RaylibException;
#endif // RAYLIB_CPP_INCLUDE_RAYLIBEXCEPTION_HPP_
#endif // RAYLIB_CPP_INCLUDE_RAYLIBEXCEPTION_HPP_