From c0fec8db15ffa09d6734448c6da488d62873fe02 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 1 Feb 2023 15:05:21 -0500 Subject: [PATCH] Clean up macro. --- Components/9918/Implementation/9918.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Components/9918/Implementation/9918.cpp b/Components/9918/Implementation/9918.cpp index 3cf924234..4b5412e48 100644 --- a/Components/9918/Implementation/9918.cpp +++ b/Components/9918/Implementation/9918.cpp @@ -211,18 +211,18 @@ void TMS9918::run_for(const HalfCycles cycles) { // Perform memory accesses. // ------------------------ #define fetch(function, clock, offset) { \ - const int first_window = from_internal(this->fetch_pointer_.column);\ - const int final_window = from_internal(end_column); \ - if(first_window == final_window) break; \ - if(final_window != clock_rate()) { \ - function( \ - this->line_buffers_[this->fetch_pointer_.row], this->fetch_pointer_.row + offset, \ - first_window, final_window); \ - } else { \ - function( \ - this->line_buffers_[this->fetch_pointer_.row], this->fetch_pointer_.row + offset, \ - first_window, final_window); \ - } \ + const int first_window = from_internal(this->fetch_pointer_.column); \ + const int final_window = from_internal(end_column); \ + if(first_window == final_window) break; \ + if(final_window != clock_rate()) { \ + function( \ + this->line_buffers_[this->fetch_pointer_.row], this->fetch_pointer_.row + offset, \ + first_window, final_window); \ + } else { \ + function( \ + this->line_buffers_[this->fetch_pointer_.row], this->fetch_pointer_.row + offset, \ + first_window, final_window); \ + } \ } switch(line_buffer.fetch_mode) {