Skip to content

Commit 364da41

Browse files
committed
change to #pragma once
1 parent 062d491 commit 364da41

File tree

4 files changed

+4
-16
lines changed

4 files changed

+4
-16
lines changed

cpp/arduino/AvrAdc.h

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
#ifndef _AVR_ADC_H_
2-
#define _AVR_ADC_H_
1+
#pragma once
32

43
// mock storage to allow access to ADCSRA
54
extern unsigned char sfr_store;
65
#define _SFR_MEM8(mem_addr) sfr_store
7-
8-
#endif // _AVR_ADC_H_

cpp/arduino/avr/interrupt.h

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
#ifndef _AVR_INTERRUPT_H_
2-
#define _AVR_INTERRUPT_H_
1+
#pragma once
32

43
// allows the production code to define an ISR method
54
#define _VECTOR(N) __vector_ ## N
65
#define ISR(vector, ...) \
76
extern "C" void vector (void) __VA_ARGS__; \
87
void vector (void)
9-
10-
#endif // _AVR_INTERRUPT_H_

cpp/arduino/avr/sleep.h

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef _AVR_SLEEP_H_
2-
#define _AVR_SLEEP_H_
1+
#pragma once
32

43
#include <Godmode.h>
54

@@ -36,5 +35,3 @@ void sleep_mode() {
3635
godmode->sleep.sleep_mode_count++;
3736
sleep_disable();
3837
}
39-
40-
#endif /* _AVR_SLEEP_H_ */

cpp/arduino/avr/wdt.h

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef _AVR_WDT_H_
2-
#define _AVR_WDT_H_
1+
#pragma once
32

43
#include <Godmode.h>
54

@@ -31,5 +30,3 @@ void wdt_reset() {
3130
GodmodeState* godmode = GODMODE();
3231
godmode->wdt.wdt_reset_count++;
3332
}
34-
35-
#endif /* _AVR_WDT_H_ */

0 commit comments

Comments
 (0)