ETISS 0.11.2
ExtendableTranslatingInstructionSetSimulator(version0.11.2)
Loading...
Searching...
No Matches
Defs.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-3-Clause
2//
3// This file is part of ETISS. It is licensed under the BSD 3-Clause License; you may not use this file except in
4// compliance with the License. You should have received a copy of the license along with this project. If not, see the
5// LICENSE file.
15#ifndef ETISS_FAULT_DEFS_H_
16#define ETISS_FAULT_DEFS_H_
17
18#include <iostream>
19#include <stdint.h>
20
24//
25
27#define ETISS_FAULT_XML 1
28
30#if defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L || !defined(NO_ETISS)
31#define CXX0X_UP_SUPPORTED 1
32#else
33#define CXX0X_UP_SUPPORTED 0
34#endif
35
36#if CXX0X_UP_SUPPORTED
37#include <memory>
38#endif
39
40namespace etiss
41{
42namespace fault
43{
44
45class Injector;
46
47#if CXX0X_UP_SUPPORTED
48typedef std::shared_ptr<Injector> Injector_ptr;
49#else
50typedef Injector *Injector_ptr;
51#endif
52
53} // namespace fault
54
55} // namespace etiss
56
57#ifdef NO_ETISS
58namespace etiss
59{
60class ToString
61{
62 public:
63 inline ToString() {}
64 virtual inline ~ToString() {}
65 virtual inline std::string toString() { return ""; }
66};
67} // namespace etiss
68#endif
69
70#endif
virtual ~ToString()
Definition Misc.h:98
std::shared_ptr< Injector > Injector_ptr
Definition Defs.h:48
forwards: include/jit/*
Definition Benchmark.h:17
std::string toString(const T &val)
conversion of type T to std::string.
Definition Misc.h:133