mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-06 12:59:15 +00:00
Rename std functions to match the standard
This commit is contained in:
19
include/std/stdexcept.hpp
Normal file
19
include/std/stdexcept.hpp
Normal file
@ -0,0 +1,19 @@
|
||||
#ifndef __FENNIX_KERNEL_STD_STDEXCEPT_H__
|
||||
#define __FENNIX_KERNEL_STD_STDEXCEPT_H__
|
||||
|
||||
#include <types.h>
|
||||
|
||||
namespace std
|
||||
{
|
||||
class runtime_error
|
||||
{
|
||||
private:
|
||||
const char *m_what;
|
||||
|
||||
public:
|
||||
runtime_error(const char *what_arg) : m_what(what_arg) {}
|
||||
const char *what() const { return m_what; }
|
||||
};
|
||||
}
|
||||
|
||||
#endif // !__FENNIX_KERNEL_STD_STDEXCEPT_H__
|
Reference in New Issue
Block a user