mirror of
https://github.com/momo5502/emulator.git
synced 2026-02-01 19:15:23 +01:00
Reformat code + small fixes
This commit is contained in:
@@ -337,16 +337,16 @@ namespace unicorn
|
||||
{
|
||||
mmio_callbacks cb{
|
||||
.read = mmio_callbacks::read_wrapper(
|
||||
[c = std::move(read_cb)](uc_engine*, const uint64_t addr, const uint32_t s)
|
||||
{
|
||||
return c(addr, s);
|
||||
}),
|
||||
[c = std::move(read_cb)](uc_engine*, const uint64_t addr, const uint32_t s)
|
||||
{
|
||||
return c(addr, s);
|
||||
}),
|
||||
.write = mmio_callbacks::write_wrapper(
|
||||
[c = std::move(write_cb)](uc_engine*, const uint64_t addr, const uint32_t s,
|
||||
const uint64_t value)
|
||||
{
|
||||
c(addr, s, value);
|
||||
})
|
||||
[c = std::move(write_cb)](uc_engine*, const uint64_t addr, const uint32_t s,
|
||||
const uint64_t value)
|
||||
{
|
||||
c(addr, s, value);
|
||||
})
|
||||
};
|
||||
|
||||
uce(uc_mmio_map(*this, address, size, cb.read.get_c_function(), cb.read.get_user_data(),
|
||||
|
||||
@@ -4,19 +4,11 @@
|
||||
#include <x64_emulator.hpp>
|
||||
#include "platform/platform.hpp"
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef UNICORN_EMULATOR_IMPL
|
||||
#define UNICORN_EMULATOR_DLL_STORAGE EXPORT_SYMBOL
|
||||
#else
|
||||
#define UNICORN_EMULATOR_DLL_STORAGE IMPORT_SYMBOL
|
||||
#endif
|
||||
#else
|
||||
#ifdef UNICORN_EMULATOR_IMPL
|
||||
#define UNICORN_EMULATOR_DLL_STORAGE __attribute__((visibility("default")))
|
||||
#else
|
||||
#define UNICORN_EMULATOR_DLL_STORAGE
|
||||
#endif
|
||||
#endif
|
||||
|
||||
namespace unicorn
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user