From 108c584ddbbf8303bc89381bb550a601319edfd7 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 16 Jan 2024 23:40:52 -0500 Subject: [PATCH] Comment out unused macros. --- Machines/Atari/ST/DMAController.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Machines/Atari/ST/DMAController.cpp b/Machines/Atari/ST/DMAController.cpp index 104d5efc5..e17618746 100644 --- a/Machines/Atari/ST/DMAController.cpp +++ b/Machines/Atari/ST/DMAController.cpp @@ -191,10 +191,10 @@ int DMAController::bus_grant(uint16_t *ram, size_t size) { // Check that the older buffer is full; stop if not. if(!buffer_[active_buffer_ ^ 1].is_full) return 0; -#define b(i, n) " " << PADHEX(2) << int(buffer_[i].contents[n]) -#define b2(i, n) b(i, n) << b(i, n+1) -#define b4(i, n) b2(i, n) << b2(i, n+2) -#define b16(i) b4(i, 0) << b4(i, 4) << b4(i, 8) << b4(i, 12) +//#define b(i, n) " " << PADHEX(2) << int(buffer_[i].contents[n]) +//#define b2(i, n) b(i, n) << b(i, n+1) +//#define b4(i, n) b2(i, n) << b2(i, n+2) +//#define b16(i) b4(i, 0) << b4(i, 4) << b4(i, 8) << b4(i, 12) // LOG("[1] to " << PADHEX(6) << address_ << b16(active_buffer_ ^ 1)); for(int c = 0; c < 8; ++c) { @@ -212,10 +212,10 @@ int DMAController::bus_grant(uint16_t *ram, size_t size) { if(!buffer_[active_buffer_ ].is_full) return 8; // LOG("[2] to " << PADHEX(6) << address_ << b16(active_buffer_)); -#undef b16 -#undef b4 -#undef b2 -#undef b +//#undef b16 +//#undef b4 +//#undef b2 +//#undef b for(int c = 0; c < 8; ++c) { if(size_t(address_) < size) {