Skip to content

Commit 3e4ea0b

Browse files
committed
add namespace to deque & bug fix
- setHandleException should return reference to AppleMIDISession - namespace around deque,
1 parent ff62142 commit 3e4ea0b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/AppleMIDI.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class AppleMIDISession
7272
return *this;
7373
}
7474
#ifdef USE_EXT_CALLBACKS
75-
void setHandleException(void (*fptr)(const ssrc_t &, const Exception &, const int32_t value))
75+
AppleMIDISession &setHandleException(void (*fptr)(const ssrc_t &, const Exception &, const int32_t value))
7676
{
7777
_exceptionCallback = fptr;
7878
return *this;

src/utility/Deque.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#pragma once
22

3+
BEGIN_APPLEMIDI_NAMESPACE
4+
35
template<typename T, size_t Size>
46
class Deque {
57
// class iterator;
@@ -209,3 +211,5 @@ void Deque<T, Size>::clear()
209211
_tail = -1;
210212
_head = 0;
211213
}
214+
215+
END_APPLEMIDI_NAMESPACE

0 commit comments

Comments
 (0)