mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
netlist: Make fostrm actually write to file. (nw)
Also fix typos and a tidy warning.
This commit is contained in:
parent
a48f64e018
commit
75681d760c
@ -831,10 +831,8 @@ namespace netlist
|
||||
device.state().setup().register_param_t(*this);
|
||||
}
|
||||
|
||||
param_t::~param_t() noexcept
|
||||
{
|
||||
// placed here to avoid weak vtable warnings
|
||||
}
|
||||
// placed here to avoid weak vtable warnings
|
||||
param_t::~param_t() noexcept = default;
|
||||
|
||||
param_t::param_type_t param_t::param_type() const noexcept(false)
|
||||
{
|
||||
|
@ -187,7 +187,7 @@ namespace netlist
|
||||
}
|
||||
};
|
||||
|
||||
/// \brief: used define a constant in device description struct
|
||||
/// \brief: used to define a constant in device description struct
|
||||
///
|
||||
/// See the 74125 implementation
|
||||
///
|
||||
|
@ -34,7 +34,6 @@ namespace plib
|
||||
enum E { __VA_ARGS__ }; \
|
||||
constexpr ename (const E &v) : m_v(v) { } \
|
||||
template <typename T> explicit constexpr ename(const T &val) { m_v = static_cast<E>(val); } \
|
||||
template <typename T> explicit constexpr ename(T && val) { m_v = static_cast<E>(val); } \
|
||||
bool set_from_string (const pstring &s) { \
|
||||
int f = from_string_int(strings(), s); \
|
||||
if (f>=0) { m_v = static_cast<E>(f); return true; } \
|
||||
|
@ -289,7 +289,7 @@ public:
|
||||
pstring_t<pwchar_traits>, pstring_t<putf8_traits>>::type;
|
||||
|
||||
template <typename T>
|
||||
explicit ofstream(const pstring_t<T> name, ios_base::openmode mode = ios_base::in)
|
||||
explicit ofstream(const pstring_t<T> name, ios_base::openmode mode = ios_base::out | ios_base::trunc)
|
||||
: std::ofstream(filename_type(name).c_str(), mode)
|
||||
{
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user