Skip to content

Commit 4ef20e4

Browse files
committed
Move inline method to fix linux build
1 parent 4423cd1 commit 4ef20e4

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

Source/Plugins/IntanRecordingController/rhythm-api/rhd2000datablockusb3.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,3 @@ void Rhd2000DataBlockUsb3::write(ofstream &saveOut, int numDataStreams) const
412412
writeWordLittleEndian(saveOut, ttlOut[t]);
413413
}
414414
}
415-
416-
// Inline function to address data stored in amplifierDataFast[] array
417-
inline int Rhd2000DataBlockUsb3::fastIndex(int stream, int channel, int t) const
418-
{
419-
return ((t * numDataStreamsStored * CHANNELS_PER_STREAM) + (channel * numDataStreamsStored) + stream);
420-
}

Source/Plugins/IntanRecordingController/rhythm-api/rhd2000datablockusb3.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ class Rhd2000DataBlockUsb3
5151
void write(ofstream &saveOut, int numDataStreams) const;
5252
static bool checkUsbHeader(unsigned char usbBuffer[], int index);
5353
static unsigned int convertUsbTimeStamp(unsigned char usbBuffer[], int index);
54-
inline int fastIndex(int stream, int channel, int t) const;
54+
inline int fastIndex(int stream, int channel, int t) const
55+
{
56+
return ((t * numDataStreamsStored * CHANNELS_PER_STREAM) + (channel * numDataStreamsStored) + stream);
57+
}
5558

5659
private:
5760
void allocateIntArray3D(vector<vector<vector<int> > > &array3D, int xSize, int ySize, int zSize);

0 commit comments

Comments
 (0)