Adding the SFML to the CMake libraries

This commit is contained in:
AnonymusRaccoon
2020-01-31 10:52:55 +01:00
parent a1c055920c
commit 15fb1c2cf1
4 changed files with 18 additions and 10 deletions
@@ -2,8 +2,8 @@
// Created by anonymus-raccoon on 1/30/20.
//
#ifndef COMSQUARE_INVALIDACCTION_HPP
#define COMSQUARE_INVALIDACCTION_HPP
#ifndef COMSQUARE_INVALIDACTION_HPP
#define COMSQUARE_INVALIDACTION_HPP
#include <exception>
#include <string>
@@ -11,12 +11,12 @@
namespace ComSquare
{
//! @brief Exception thrown when someone tries to load an invalid rom.
class InvalidAcction : std::exception {
class InvalidAction : std::exception {
private:
std::string _msg;
public:
explicit InvalidAcction(const std::string &msg) : _msg(msg) {}
explicit InvalidAction(const std::string &msg) : _msg(msg) {}
const char *what() const noexcept override { return this->_msg.c_str(); }
};
}
#endif //COMSQUARE_INVALIDACCTION_HPP
#endif //COMSQUARE_INVALIDACTION_HPP