#ifndef in *.h + #pragma once (#1639)

This commit is contained in:
Nicolas Liaudat
2022-12-20 06:46:13 +01:00
committed by GitHub
parent c4cd43b3d6
commit fc5fbd648e
37 changed files with 188 additions and 288 deletions

View File

@@ -1,5 +1,8 @@
#pragma once
#ifndef COLOR_H
#define COLOR_H
#include <cstdint>
#include "esp_attr.h"
union Hsv;
@@ -67,3 +70,5 @@ union Hsv {
bool operator==( Hsv in ) const { return in.value == value; }
void swap( Hsv& o ) { value = o.value; }
};
#endif //COLOR_H

View File

@@ -1,5 +1,8 @@
#pragma once
#ifndef SMARTLEDS_H
#define SMARTLEDS_H
/*
* A C++ driver for the WS2812 LEDs using the RMT peripheral on the ESP32.
*
@@ -528,3 +531,5 @@ private:
int _latchFrames;
uint8_t _latchBuffer[ LATCH_FRAME_SIZE_BYTES ];
};
#endif //SMARTLEDS_H

View File

@@ -1,3 +1,5 @@
#pragma once
#ifndef SERVER_GPIO_H
#define SERVER_GPIO_H