ソースを参照

🩹 Use `#pragma once` in pins files

Scott Lahteine 2年前
コミット
9bf5cddb46

+ 1
- 0
Marlin/src/pins/mega/pins_PICA.h ファイルの表示

@@ -19,6 +19,7 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
+#pragma once
22 23
 
23 24
 /**
24 25
  * Arduino Mega with PICA pin assignments

+ 1
- 0
Marlin/src/pins/mega/pins_PICAOLD.h ファイルの表示

@@ -19,6 +19,7 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
+#pragma once
22 23
 
23 24
 #define HEATER_0_PIN                          9   // E0
24 25
 #define HEATER_1_PIN                         10   // E1

+ 1
- 0
Marlin/src/pins/ramps/pins_K8600.h ファイルの表示

@@ -19,6 +19,7 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
+#pragma once
22 23
 
23 24
 /**
24 25
  * VERTEX NANO Arduino Mega with RAMPS EFB v1.4 pin assignments.

+ 1
- 0
Marlin/src/pins/ramps/pins_TT_OSCAR.h ファイルの表示

@@ -19,6 +19,7 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
+#pragma once
22 23
 
23 24
 #include "env_validate.h"
24 25
 

+ 1
- 0
Marlin/src/pins/sam/pins_CNCONTROLS_15D.h ファイルの表示

@@ -19,6 +19,7 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
+#pragma once
22 23
 
23 24
 /**
24 25
  * CNControls V15 for HMS434 with DUE pin assignments

+ 1
- 0
Marlin/src/pins/sam/pins_RURAMPS4D_11.h ファイルの表示

@@ -20,6 +20,7 @@
20 20
  *
21 21
  * Ported sys0724 & Vynt
22 22
  */
23
+#pragma once
23 24
 
24 25
 /**
25 26
  * Arduino Mega? or Due with RuRAMPS4DUE pin assignments

+ 1
- 0
Marlin/src/pins/sam/pins_RURAMPS4D_13.h ファイルの表示

@@ -20,6 +20,7 @@
20 20
  *
21 21
  * Ported sys0724 & Vynt
22 22
  */
23
+#pragma once
23 24
 
24 25
 /**
25 26
  * Arduino Mega? or Due with RuRAMPS4DUE pin assignments

+ 1
- 0
Marlin/src/pins/stm32f1/pins_CREALITY_V4.h ファイルの表示

@@ -19,6 +19,7 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
+#pragma once
22 23
 
23 24
 /**
24 25
  * Creality 4.2.x (STM32F103RET6) board pin assignments

+ 1
- 0
Marlin/src/pins/stm32f1/pins_CREALITY_V4210.h ファイルの表示

@@ -19,6 +19,7 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
+#pragma once
22 23
 
23 24
 /**
24 25
  * CREALITY 4.2.10 (STM32F103) board pin assignments

+ 1
- 0
Marlin/src/pins/stm32f1/pins_CREALITY_V427.h ファイルの表示

@@ -19,6 +19,7 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
+#pragma once
22 23
 
23 24
 /**
24 25
  * CREALITY v4.2.7 (STM32F103) board pin assignments

+ 1
- 0
Marlin/src/pins/stm32f1/pins_CREALITY_V431.h ファイルの表示

@@ -19,6 +19,7 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
+#pragma once
22 23
 
23 24
 /**
24 25
  * CREALITY v4.3.1 (STM32F103) board pin assignments

+ 1
- 0
Marlin/src/pins/stm32f1/pins_CREALITY_V452.h ファイルの表示

@@ -19,6 +19,7 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
+#pragma once
22 23
 
23 24
 /**
24 25
  * Creality v4.5.2 (STM32F103RET6) board pin assignments

+ 1
- 0
Marlin/src/pins/stm32f1/pins_CREALITY_V453.h ファイルの表示

@@ -19,6 +19,7 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
+#pragma once
22 23
 
23 24
 /**
24 25
  * Creality v4.5.3 (STM32F103RET6) board pin assignments

+ 1
- 0
Marlin/src/pins/stm32f1/pins_CREALITY_V45x.h ファイルの表示

@@ -19,6 +19,7 @@
19 19
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20 20
  *
21 21
  */
22
+#pragma once
22 23
 
23 24
 /**
24 25
  * Creality v4.5.2 and v4.5.3 (STM32F103RET6) board pin assignments

+ 1
- 0
Marlin/src/pins/teensy2/pins_TEENSYLU.h ファイルの表示

@@ -18,6 +18,7 @@
18 18
  * You should have received a copy of the GNU General Public License
19 19
  * along with this program.   If not, see <https://www.gnu.org/licenses/>.
20 20
  */
21
+#pragma once
21 22
 
22 23
 /**
23 24
  *  Rev C  2 JUN 2017

読み込み中…
キャンセル
保存