mirror of
https://github.com/holub/mame
synced 2025-04-28 11:11:48 +03:00
netlist: Fixed a couple of issues with various compilers.
This commit is contained in:
parent
0acb9992f4
commit
a6fb699b6f
@ -117,7 +117,10 @@
|
||||
<ClCompile Include="..\devices\nld_2102A.cpp" />
|
||||
<ClCompile Include="..\devices\nld_4006.cpp" />
|
||||
<ClCompile Include="..\devices\nld_4017.cpp" />
|
||||
<ClCompile Include="..\devices\nld_4029.cpp" />
|
||||
<ClCompile Include="..\devices\nld_4042.cpp" />
|
||||
<ClCompile Include="..\devices\nld_4053.cpp" />
|
||||
<ClCompile Include="..\devices\nld_4076.cpp" />
|
||||
<ClCompile Include="..\devices\nld_74125.cpp" />
|
||||
<ClCompile Include="..\devices\nld_74163.cpp" />
|
||||
<ClCompile Include="..\devices\nld_74377.cpp" />
|
||||
@ -176,6 +179,8 @@
|
||||
<ClCompile Include="..\devices\nlid_truthtable.cpp" />
|
||||
<ClCompile Include="..\generated\nlm_modules_lib.cpp" />
|
||||
<ClCompile Include="..\generated\static_solvers.cpp" />
|
||||
<ClCompile Include="..\macro\modules\nlmod_ICL8038_DIP.cpp" />
|
||||
<ClCompile Include="..\macro\modules\nlmod_NE556_DIP.cpp" />
|
||||
<ClCompile Include="..\macro\modules\nlmod_RTEST.cpp" />
|
||||
<ClCompile Include="..\macro\nlm_base_lib.cpp" />
|
||||
<ClCompile Include="..\macro\nlm_cd4xxx_lib.cpp" />
|
||||
|
@ -294,6 +294,21 @@
|
||||
<ClCompile Include="..\macro\modules\nlmod_RTEST.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\devices\nld_4042.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\devices\nld_4076.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\devices\nld_4029.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\macro\modules\nlmod_ICL8038_DIP.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\macro\modules\nlmod_NE556_DIP.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\nl_errstr.h">
|
||||
|
@ -39,7 +39,7 @@ namespace plib {
|
||||
public:
|
||||
explicit pexception(const pstring &text);
|
||||
|
||||
const pstring &text() const noexcept { return m_text; }
|
||||
const putf8string &text() const noexcept { return m_text; }
|
||||
const char* what() const noexcept override { return m_text.c_str(); }
|
||||
|
||||
private:
|
||||
|
@ -70,7 +70,8 @@ namespace plib {
|
||||
// FIXME: need native support at some time
|
||||
static constexpr const bool is_signed = true;
|
||||
static char32_t fmt_spec() { return 'd'; }
|
||||
static void streamify(std::ostream &s, const compile_info::int128_type &v)
|
||||
template <typename T, typename = std::enable_if_t<plib::is_arithmetic<T>::value>>
|
||||
static void streamify(std::ostream &s, const T &v)
|
||||
{
|
||||
s << narrow_cast<long long>(v);
|
||||
}
|
||||
|
@ -271,7 +271,7 @@ namespace plib
|
||||
/// FIXME: limited implementation
|
||||
///
|
||||
template <typename T1, typename T2>
|
||||
static
|
||||
static inline
|
||||
auto pow(T1 v, T2 p) noexcept -> decltype(std::pow(v, p))
|
||||
{
|
||||
return std::pow(v, p);
|
||||
|
@ -63,6 +63,7 @@ namespace plib
|
||||
constexpr explicit ptime(const ptime<O, RES> &rhs, T dummy = 0) noexcept
|
||||
: m_time(static_cast<TYPE>(rhs.m_time))
|
||||
{
|
||||
plib::unused_var(dummy);
|
||||
}
|
||||
|
||||
template <typename O>
|
||||
|
Loading…
Reference in New Issue
Block a user