mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-11 22:44:11 +02:00
Update to v106r81 release.
byuu says: First 32 instructions implemented in the TLCS900H disassembler. Only 992 to go! I removed the use of anonymous namespaces in nall. It was something I rarely used, because it rarely did what I wanted. I updated all nested namespaces to use C++17-style namespace Foo::Bar {} syntax instead of classic C++-style namespace Foo { namespace Bar {}}. I updated ruby::Video::acquire() to return a struct, so we can use C++17 structured bindings. Long term, I want to get away from all functions that take references for output only. Even though C++ botched structured bindings by not allowing you to bind to existing variables, it's even worse to have function calls that take arguments by reference and then write to them. From the caller side, you can't tell the value is being written, nor that the value passed in doesn't matter, which is terrible.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
#include <nall/arithmetic.hpp>
|
||||
|
||||
namespace nall { namespace Encode {
|
||||
namespace nall::Encode {
|
||||
|
||||
template<uint Bits, typename T> inline auto Base(T value) -> string {
|
||||
static const string format =
|
||||
@@ -35,4 +35,4 @@ template<uint Bits, typename T> inline auto Base(T value) -> string {
|
||||
return result;
|
||||
}
|
||||
|
||||
}}
|
||||
}
|
||||
|
Reference in New Issue
Block a user