summaryrefslogtreecommitdiffstats
path: root/quantum/visualizer
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-12-26 15:53:12 +1100
committerGitHub <noreply@github.com>2020-12-26 15:53:12 +1100
commit48f4768d33313e6a6ed48c31f95eb44feda10a51 (patch)
tree49944f8e0399fc661b9adbf7d8c0962995634579 /quantum/visualizer
parent53eb7f0774881e8a9f6186a51e15135edc6f8575 (diff)
Change include guards in quantum/ to pragma once (#11239)
Diffstat (limited to 'quantum/visualizer')
-rw-r--r--quantum/visualizer/common_gfxconf.h5
-rw-r--r--quantum/visualizer/default_animations.h5
-rw-r--r--quantum/visualizer/lcd_backlight.h6
-rw-r--r--quantum/visualizer/lcd_backlight_keyframes.h5
-rw-r--r--quantum/visualizer/lcd_keyframes.h5
-rw-r--r--quantum/visualizer/led_backlight_keyframes.h5
-rw-r--r--quantum/visualizer/resources/resources.h5
-rw-r--r--quantum/visualizer/visualizer.h6
-rw-r--r--quantum/visualizer/visualizer_keyframes.h5
9 files changed, 11 insertions, 36 deletions
diff --git a/quantum/visualizer/common_gfxconf.h b/quantum/visualizer/common_gfxconf.h
index e5bbddbb02..e0735b37d0 100644
--- a/quantum/visualizer/common_gfxconf.h
+++ b/quantum/visualizer/common_gfxconf.h
@@ -19,8 +19,7 @@
* Please use spaces instead of tabs in this file.
*/
-#ifndef COMMON_GFXCONF_H
-#define COMMON_GFXCONF_H
+#pragma once
///////////////////////////////////////////////////////////////////////////
// GFX - Compatibility options //
@@ -353,5 +352,3 @@
#define GMISC_NEED_MATRIXFLOAT2D GFXON
#define GMISC_NEED_MATRIXFIXED2D GFXOFF
//#define GMISC_NEED_HITTEST_POLY GFXOFF
-
-#endif /* COMMON_GFXCONF_H */
diff --git a/quantum/visualizer/default_animations.h b/quantum/visualizer/default_animations.h
index 51320b8b8a..9accd89774 100644
--- a/quantum/visualizer/default_animations.h
+++ b/quantum/visualizer/default_animations.h
@@ -14,8 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef DEFAULT_ANIMATIONS_H_
-#define DEFAULT_ANIMATIONS_H_
+#pragma once
#include "visualizer.h"
@@ -26,5 +25,3 @@ extern keyframe_animation_t default_suspend_animation;
// An animation for testing and demonstrating the led support, should probably not be used for real world
// cases
extern keyframe_animation_t led_test_animation;
-
-#endif /* DEFAULT_ANIMATIONS_H_ */
diff --git a/quantum/visualizer/lcd_backlight.h b/quantum/visualizer/lcd_backlight.h
index 0a1535edf5..4ea5b14639 100644
--- a/quantum/visualizer/lcd_backlight.h
+++ b/quantum/visualizer/lcd_backlight.h
@@ -22,8 +22,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
-#ifndef LCD_BACKLIGHT_H_
-#define LCD_BACKLIGHT_H_
+#pragma once
+
#include <stdint.h>
// Helper macros for storing hue, staturation and intensity as unsigned integers
@@ -41,5 +41,3 @@ uint8_t lcd_get_backlight_brightness(void);
void lcd_backlight_hal_init(void);
void lcd_backlight_hal_color(uint16_t r, uint16_t g, uint16_t b);
-
-#endif /* LCD_BACKLIGHT_H_ */
diff --git a/quantum/visualizer/lcd_backlight_keyframes.h b/quantum/visualizer/lcd_backlight_keyframes.h
index bde118449b..88768dd4a5 100644
--- a/quantum/visualizer/lcd_backlight_keyframes.h
+++ b/quantum/visualizer/lcd_backlight_keyframes.h
@@ -14,8 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef QUANTUM_VISUALIZER_LCD_BACKLIGHT_KEYFRAMES_H_
-#define QUANTUM_VISUALIZER_LCD_BACKLIGHT_KEYFRAMES_H_
+#pragma once
#include "visualizer.h"
@@ -26,5 +25,3 @@ bool lcd_backlight_keyframe_set_color(keyframe_animation_t* animation, visualize
bool lcd_backlight_keyframe_disable(keyframe_animation_t* animation, visualizer_state_t* state);
bool lcd_backlight_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state);
-
-#endif /* QUANTUM_VISUALIZER_LCD_BACKLIGHT_KEYFRAMES_H_ */
diff --git a/quantum/visualizer/lcd_keyframes.h b/quantum/visualizer/lcd_keyframes.h
index 6346c8643b..b7125e8323 100644
--- a/quantum/visualizer/lcd_keyframes.h
+++ b/quantum/visualizer/lcd_keyframes.h
@@ -14,8 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef QUANTUM_VISUALIZER_LCD_KEYFRAMES_H_
-#define QUANTUM_VISUALIZER_LCD_KEYFRAMES_H_
+#pragma once
#include "visualizer.h"
@@ -34,5 +33,3 @@ bool lcd_keyframe_draw_logo(keyframe_animation_t* animation, visualizer_state_t*
bool lcd_keyframe_disable(keyframe_animation_t* animation, visualizer_state_t* state);
bool lcd_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state);
-
-#endif /* QUANTUM_VISUALIZER_LCD_KEYFRAMES_H_ */
diff --git a/quantum/visualizer/led_backlight_keyframes.h b/quantum/visualizer/led_backlight_keyframes.h
index 648f92b915..90153be5eb 100644
--- a/quantum/visualizer/led_backlight_keyframes.h
+++ b/quantum/visualizer/led_backlight_keyframes.h
@@ -22,8 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
-#ifndef LED_BACKLIGHT_KEYFRAMES_H
-#define LED_BACKLIGHT_KEYFRAMES_H
+#pragma once
#include "visualizer.h"
@@ -39,5 +38,3 @@ bool led_backlight_keyframe_disable(keyframe_animation_t* animation, visualizer_
bool led_backlight_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state);
extern keyframe_animation_t led_test_animation;
-
-#endif /* LED_KEYFRAMES_H */
diff --git a/quantum/visualizer/resources/resources.h b/quantum/visualizer/resources/resources.h
index 74fd8d2f65..5178fbe55a 100644
--- a/quantum/visualizer/resources/resources.h
+++ b/quantum/visualizer/resources/resources.h
@@ -14,13 +14,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef QUANTUM_VISUALIZER_RESOURCES_RESOURCES_H_
-#define QUANTUM_VISUALIZER_RESOURCES_RESOURCES_H_
+#pragma once
#include <stdint.h>
#ifdef LCD_ENABLE
extern const uint8_t resource_lcd_logo[];
#endif
-
-#endif /* QUANTUM_VISUALIZER_RESOURCES_RESOURCES_H_ */
diff --git a/quantum/visualizer/visualizer.h b/quantum/visualizer/visualizer.h
index 488d130dec..627c80a305 100644
--- a/quantum/visualizer/visualizer.h
+++ b/quantum/visualizer/visualizer.h
@@ -22,8 +22,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
-#ifndef VISUALIZER_H
-#define VISUALIZER_H
+#pragma once
+
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
@@ -152,5 +152,3 @@ void user_visualizer_suspend(visualizer_state_t* state);
void initialize_user_visualizer(visualizer_state_t* state);
// Called when the computer resumes from a suspend
void user_visualizer_resume(visualizer_state_t* state);
-
-#endif /* VISUALIZER_H */
diff --git a/quantum/visualizer/visualizer_keyframes.h b/quantum/visualizer/visualizer_keyframes.h
index 9ef7653c5e..c92ff16113 100644
--- a/quantum/visualizer/visualizer_keyframes.h
+++ b/quantum/visualizer/visualizer_keyframes.h
@@ -14,13 +14,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef QUANTUM_VISUALIZER_VISUALIZER_KEYFRAMES_H_
-#define QUANTUM_VISUALIZER_VISUALIZER_KEYFRAMES_H_
+#pragma once
#include "visualizer.h"
// Some predefined keyframe functions that can be used by the user code
// Does nothing, useful for adding delays
bool keyframe_no_operation(keyframe_animation_t* animation, visualizer_state_t* state);
-
-#endif /* QUANTUM_VISUALIZER_VISUALIZER_KEYFRAMES_H_ */