helos1/libstd/exception
Edgaru089 98f92a9958 makefile: move pdlibc to extlib, add C++ stub standard headers
It now kind of compiles with x86_64-elf gcc (does not link though)
2021-11-04 20:15:58 +08:00

24 lines
442 B
Plaintext

#pragma once
#include <__cpp_config.hpp>
extern "C++" {
namespace std {
class exception {
public:
exception() __NOTHROW {}
#ifdef __CXX11
exception(const exception &) = default;
exception &operator=(const exception &) = default;
exception(exception &&) = default;
exception &operator=(exception &&) = default;
#endif
virtual const char *what() const __NOTHROW { return "std::exception"; };
};
} // namespace std
}