esp32_ethernet_milight_hub/lib/Helpers/Size.h
2021-01-15 22:49:01 +01:00

11 lines
136 B
C++

#include <Arduino.h>
#ifndef _SIZE_H
#define _SIZE_H
template<typename T, size_t sz>
size_t size(T(&)[sz]) {
return sz;
}
#endif