forked from mirror/openmw-tes3mp
Removed tools/str_exception (now part of Mangle)
This commit is contained in:
parent
a02c398143
commit
1779dc1f7c
4 changed files with 6 additions and 22 deletions
|
@ -25,12 +25,11 @@
|
|||
|
||||
#include "../mangle/stream/servers/file_stream.h"
|
||||
#include "../mangle/stream/filters/slice_stream.h"
|
||||
#include "../mangle/tools/str_exception.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "../tools/str_exception.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace Mangle::Stream;
|
||||
|
||||
|
|
|
@ -10,3 +10,7 @@ bsatool: bsatool.cpp ../bsa_file.cpp bsatool_cmd.c
|
|||
|
||||
bsatool_cmd.c: bsatool.ggo
|
||||
gengetopt < bsatool.ggo
|
||||
|
||||
clean:
|
||||
rm *_test
|
||||
rm bsatool
|
||||
|
|
2
mangle
2
mangle
|
@ -1 +1 @@
|
|||
Subproject commit 5e70bc7bd768b9fb6016c02656841d199cbb3759
|
||||
Subproject commit 86089816a7532724e4d8ab464a60229b1177b23a
|
|
@ -1,19 +0,0 @@
|
|||
#ifndef __STR_EXCEPTION_H
|
||||
#define __STR_EXCEPTION_H
|
||||
|
||||
#include <exception>
|
||||
#include <string>
|
||||
|
||||
/// A simple exception that takes and returns a string
|
||||
class str_exception : public std::exception
|
||||
{
|
||||
std::string msg;
|
||||
|
||||
public:
|
||||
|
||||
str_exception(const std::string &m) : msg(m) {}
|
||||
~str_exception() throw() {}
|
||||
const char* what() const throw() { return msg.c_str(); }
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Reference in a new issue