Initial RetroNFS95 Win9x VxD prototype
This commit is contained in:
24
include/compat.hpp
Normal file
24
include/compat.hpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef RETRONFS95_COMPAT_HPP
|
||||
#define RETRONFS95_COMPAT_HPP
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <stdexcept>
|
||||
#include <stdint.h>
|
||||
|
||||
namespace retronfs {
|
||||
|
||||
typedef unsigned char byte;
|
||||
typedef std::vector<byte> Bytes;
|
||||
|
||||
class Error : public std::runtime_error {
|
||||
public:
|
||||
explicit Error(const std::string& msg) : std::runtime_error(msg) {}
|
||||
};
|
||||
|
||||
std::string format_error(const std::string& what, int code);
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user