| ... | ... |
@@ -14,7 +14,7 @@ |
| 14 | 14 |
#include "XSFConfig_NCSF.h" |
| 15 | 15 |
#include "XSFPlayer_NCSF.h" |
| 16 | 16 |
#include "convert.h" |
| 17 |
-#ifdef _DEBUG |
|
| 17 |
+#ifndef NDEBUG |
|
| 18 | 18 |
# include <cstdint> |
| 19 | 19 |
# include "SSEQPlayer/common.h" |
| 20 | 20 |
# include "SSEQPlayer/consts.h" |
| ... | ... |
@@ -40,7 +40,7 @@ XSFConfig *XSFConfig::Create() |
| 40 | 40 |
} |
| 41 | 41 |
|
| 42 | 42 |
XSFConfig_NCSF::XSFConfig_NCSF() : XSFConfig(), interpolation(0), mutes() |
| 43 |
-#ifdef _DEBUG |
|
| 43 |
+#ifndef NDEBUG |
|
| 44 | 44 |
, soundViewData() |
| 45 | 45 |
#endif |
| 46 | 46 |
{
|
| ... | ... |
@@ -134,7 +134,7 @@ void XSFConfig_NCSF::About(HWND parent) |
| 134 | 134 |
"Utilizes code adapted from the FeOS Sound System library by fincs, git revision 5204c55 on GitHub, for audio playback.").c_str(), ConvertFuncs::StringToWString(XSFConfig::commonName + " v" + XSFConfig::versionNumber).c_str(), MB_OK); |
| 135 | 135 |
} |
| 136 | 136 |
|
| 137 |
-#ifdef _DEBUG |
|
| 137 |
+#ifndef NDEBUG |
|
| 138 | 138 |
INT_PTR CALLBACK XSFConfig_NCSF::SoundViewDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) |
| 139 | 139 |
{
|
| 140 | 140 |
auto data = reinterpret_cast<SoundViewData *>(GetWindowLongW(hwndDlg, DWLP_USER)); |
| ... | ... |
@@ -9,7 +9,7 @@ |
| 9 | 9 |
|
| 10 | 10 |
#include <bitset> |
| 11 | 11 |
#include <string> |
| 12 |
-#ifdef _DEBUG |
|
| 12 |
+#ifndef NDEBUG |
|
| 13 | 13 |
# include <algorithm> |
| 14 | 14 |
# include <memory> |
| 15 | 15 |
# include <cstdint> |
| ... | ... |
@@ -21,7 +21,7 @@ |
| 21 | 21 |
class XSFConfig_NCSF; |
| 22 | 22 |
class XSFPlayer_NCSF; |
| 23 | 23 |
|
| 24 |
-#ifdef _DEBUG |
|
| 24 |
+#ifndef NDEBUG |
|
| 25 | 25 |
struct SoundViewData |
| 26 | 26 |
{
|
| 27 | 27 |
XSFConfig_NCSF *config; |
| ... | ... |
@@ -58,7 +58,7 @@ protected: |
| 58 | 58 |
void SaveSpecificConfigDialog(HWND hwndDlg) override; |
| 59 | 59 |
void CopySpecificConfigToMemory(XSFPlayer *xSFPlayer, bool preLoad) override; |
| 60 | 60 |
|
| 61 |
-#ifdef _DEBUG |
|
| 61 |
+#ifndef NDEBUG |
|
| 62 | 62 |
std::unique_ptr<SoundViewData> soundViewData; |
| 63 | 63 |
|
| 64 | 64 |
static INT_PTR CALLBACK SoundViewDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); |
| ... | ... |
@@ -66,7 +66,7 @@ protected: |
| 66 | 66 |
public: |
| 67 | 67 |
void About(HWND parent) override; |
| 68 | 68 |
|
| 69 |
-#ifdef _DEBUG |
|
| 69 |
+#ifndef NDEBUG |
|
| 70 | 70 |
void CallSoundView(XSFPlayer *xSFPlayer, HINSTANCE hInstance, HWND hwndParent); |
| 71 | 71 |
void RefreshSoundView(); |
| 72 | 72 |
void CloseSoundView(); |
| ... | ... |
@@ -125,7 +125,7 @@ XSFPlayer_NCSF::XSFPlayer_NCSF(const std::wstring &filename) : XSFPlayer(), sseq |
| 125 | 125 |
} |
| 126 | 126 |
#endif |
| 127 | 127 |
|
| 128 |
-#ifdef _DEBUG |
|
| 128 |
+#ifndef NDEBUG |
|
| 129 | 129 |
static HANDLE soundViewThreadHandle = INVALID_HANDLE_VALUE; |
| 130 | 130 |
static bool killSoundViewThread; |
| 131 | 131 |
|
| ... | ... |
@@ -150,7 +150,7 @@ static DWORD WINAPI soundViewThread(void *b) |
| 150 | 150 |
|
| 151 | 151 |
XSFPlayer_NCSF::~XSFPlayer_NCSF() |
| 152 | 152 |
{
|
| 153 |
-#ifdef _DEBUG |
|
| 153 |
+#ifndef NDEBUG |
|
| 154 | 154 |
killSoundViewThread = true; |
| 155 | 155 |
if (WaitForSingleObject(soundViewThreadHandle, 2000) == WAIT_TIMEOUT) |
| 156 | 156 |
{
|
| ... | ... |
@@ -167,7 +167,7 @@ bool XSFPlayer_NCSF::Load() |
| 167 | 167 |
if (!this->LoadNCSF()) |
| 168 | 168 |
return false; |
| 169 | 169 |
|
| 170 |
-#ifdef _DEBUG |
|
| 170 |
+#ifndef NDEBUG |
|
| 171 | 171 |
killSoundViewThread = false; |
| 172 | 172 |
soundViewThreadHandle = CreateThread(nullptr, 0, soundViewThread, this, 0, nullptr); |
| 173 | 173 |
#endif |
| ... | ... |
@@ -258,7 +258,7 @@ void XSFPlayer_NCSF::SetMutes(const std::bitset<16> &newMutes) |
| 258 | 258 |
this->mutes = newMutes; |
| 259 | 259 |
} |
| 260 | 260 |
|
| 261 |
-#ifdef _DEBUG |
|
| 261 |
+#ifndef NDEBUG |
|
| 262 | 262 |
const Channel &XSFPlayer_NCSF::GetChannel(std::size_t chanNum) const |
| 263 | 263 |
{
|
| 264 | 264 |
return this->player.channels[chanNum]; |
| ... | ... |
@@ -14,7 +14,7 @@ |
| 14 | 14 |
#include <memory> |
| 15 | 15 |
#include <string> |
| 16 | 16 |
#include <vector> |
| 17 |
-#ifdef _DEBUG |
|
| 17 |
+#ifndef NDEBUG |
|
| 18 | 18 |
# include <cstddef> |
| 19 | 19 |
#endif |
| 20 | 20 |
#include <cstdint> |
| ... | ... |
@@ -47,7 +47,7 @@ public: |
| 47 | 47 |
|
| 48 | 48 |
void SetInterpolation(unsigned interpolation); |
| 49 | 49 |
void SetMutes(const std::bitset<16> &newMutes); |
| 50 |
-#ifdef _DEBUG |
|
| 50 |
+#ifndef NDEBUG |
|
| 51 | 51 |
const Channel &GetChannel(std::size_t chanNum) const; |
| 52 | 52 |
#endif |
| 53 | 53 |
}; |