Updated raylib-cpp header files
This commit is contained in:
@@ -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_
|
||||
|
Reference in New Issue
Block a user