1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-26 19:17:52 +00:00

Switch include guards to #pragma once.

This commit is contained in:
Thomas Harte
2024-01-16 23:34:46 -05:00
parent a1f6f2c7f7
commit a3d37640aa
436 changed files with 447 additions and 1768 deletions
@@ -6,8 +6,7 @@
// Copyright © 2020 Thomas Harte. All rights reserved.
//
#ifndef EnvelopeGenerator_h
#define EnvelopeGenerator_h
#pragma once
#include <optional>
#include <functional>
@@ -258,5 +257,3 @@ template <int envelope_precision, int period_precision> class EnvelopeGenerator
};
}
#endif /* EnvelopeGenerator_h */
@@ -6,8 +6,7 @@
// Copyright © 2020 Thomas Harte. All rights reserved.
//
#ifndef KeyLevelScaler_h
#define KeyLevelScaler_h
#pragma once
namespace Yamaha::OPL {
@@ -51,5 +50,3 @@ template <int frequency_precision> class KeyLevelScaler {
};
}
#endif /* KeyLevelScaler_h */
@@ -6,8 +6,7 @@
// Copyright © 2020 Thomas Harte. All rights reserved.
//
#ifndef LowFrequencyOscillator_hpp
#define LowFrequencyOscillator_hpp
#pragma once
#include "../../../Numeric/LFSR.hpp"
@@ -62,5 +61,3 @@ class LowFrequencyOscillator {
};
}
#endif /* LowFrequencyOscillator_hpp */
+1 -4
View File
@@ -6,8 +6,7 @@
// Copyright © 2020 Thomas Harte. All rights reserved.
//
#ifndef OPLBase_h
#define OPLBase_h
#pragma once
#include "../../../Outputs/Speaker/Implementation/SampleSource.hpp"
#include "../../../Concurrency/AsyncTaskQueue.hpp"
@@ -34,5 +33,3 @@ template <typename Child> class OPLBase: public ::Outputs::Speaker::SampleSource
};
}
#endif /* OPLBase_h */
@@ -6,8 +6,7 @@
// Copyright © 2020 Thomas Harte. All rights reserved.
//
#ifndef PhaseGenerator_h
#define PhaseGenerator_h
#pragma once
#include <cassert>
#include "LowFrequencyOscillator.hpp"
@@ -119,5 +118,3 @@ template <int precision> class PhaseGenerator {
};
}
#endif /* PhaseGenerator_h */
+1 -4
View File
@@ -6,8 +6,7 @@
// Copyright © 2020 Thomas Harte. All rights reserved.
//
#ifndef Tables_hpp
#define Tables_hpp
#pragma once
namespace Yamaha::OPL {
@@ -221,5 +220,3 @@ inline int LogSign::level(int fractional) const {
}
}
#endif /* Tables_hpp */
@@ -6,8 +6,7 @@
// Copyright © 2020 Thomas Harte. All rights reserved.
//
#ifndef WaveformGenerator_h
#define WaveformGenerator_h
#pragma once
#include "Tables.hpp"
#include "LowFrequencyOscillator.hpp"
@@ -86,5 +85,3 @@ template <int phase_precision> class WaveformGenerator {
};
}
#endif /* WaveformGenerator_h */
+1 -4
View File
@@ -6,8 +6,7 @@
// Copyright © 2020 Thomas Harte. All rights reserved.
//
#ifndef OPLL_hpp
#define OPLL_hpp
#pragma once
#include "Implementation/OPLBase.hpp"
#include "Implementation/EnvelopeGenerator.hpp"
@@ -125,5 +124,3 @@ class OPLL: public OPLBase<OPLL> {
};
}
#endif /* OPLL_hpp */