Skip to content

Commit

Permalink
switch to #pragma once
Browse files Browse the repository at this point in the history
  • Loading branch information
aWZHY0yQH81uOYvH committed Apr 23, 2024
1 parent e23ddad commit f4e6b5e
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 43 deletions.
5 changes: 1 addition & 4 deletions Emulator/AudioEngine.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef AUDIO_ENGINE_H
#define AUDIO_ENGINE_H
#pragma once

#include <list>
#include <atomic>
Expand Down Expand Up @@ -59,5 +58,3 @@ class AudioEngine {
// Apply IR filter
void genOutput();
};

#endif
5 changes: 1 addition & 4 deletions Emulator/Coil.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef COIL_H
#define COIL_H
#pragma once

#include "MIDI.h"
#include "Synth.h"
Expand Down Expand Up @@ -62,5 +61,3 @@ class Coil {
friend class MIDI;
friend class Synth;
};

#endif
5 changes: 1 addition & 4 deletions Emulator/RingBuffer.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef RING_BUFFER_H
#define RING_BUFFER_H
#pragma once

#include <array>

Expand Down Expand Up @@ -36,5 +35,3 @@ class RingBuffer {
return ret;
}
};

#endif
5 changes: 1 addition & 4 deletions Tesla_Coil_MIDI_Synth/BarChars.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef BARCHARS_H
#define BARCHARS_H
#pragma once

#include <inttypes.h>

Expand Down Expand Up @@ -27,5 +26,3 @@ typedef struct {

#define NBARCHARS 6
extern const LCDchar BarChars[NBARCHARS];

#endif
5 changes: 1 addition & 4 deletions Tesla_Coil_MIDI_Synth/Drum.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef DRUM_H
#define DRUM_H
#pragma once

#include <inttypes.h>

Expand All @@ -26,5 +25,3 @@ typedef struct {
extern const Drum drumPresets[NDRUMS];

}

#endif
5 changes: 1 addition & 4 deletions Tesla_Coil_MIDI_Synth/Knob.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef KNOB_H
#define KNOB_H
#pragma once

#include <inttypes.h>

Expand All @@ -12,5 +11,3 @@ void initEncoder();
void updateKnob();

}

#endif
5 changes: 1 addition & 4 deletions Tesla_Coil_MIDI_Synth/LCD.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef LCD_H
#define LCD_H
#pragma once

#include "Synth.h"
#include "MIDI.h"
Expand Down Expand Up @@ -71,5 +70,3 @@ void updateLCD();
void MIDIping(int8_t c);

}

#endif
4 changes: 1 addition & 3 deletions Tesla_Coil_MIDI_Synth/MIDI.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef MIDI_H
#define MIDI_H
#pragma once

#include <inttypes.h>

Expand Down Expand Up @@ -142,4 +141,3 @@ void checkConnected();
void processMIDI();

}
#endif
5 changes: 1 addition & 4 deletions Tesla_Coil_MIDI_Synth/Synth.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef SYNTH_H
#define SYNTH_H
#pragma once

#include <inttypes.h>

Expand Down Expand Up @@ -27,5 +26,3 @@ void initSynth();
void updateSynth();

}

#endif
5 changes: 1 addition & 4 deletions Tesla_Coil_MIDI_Synth/Version.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#ifndef VERSION_H
#define VERSION_H
#pragma once

#define VERSION "v1.1"

#endif
5 changes: 1 addition & 4 deletions Tesla_Coil_MIDI_Synth/Voice.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef VOICE_H
#define VOICE_H
#pragma once

#include <inttypes.h>
#include <sam.h>
Expand Down Expand Up @@ -63,5 +62,3 @@ extern volatile uint8_t voicesUpdating;
void initVoices();

}

#endif

0 comments on commit f4e6b5e

Please sign in to comment.