esp32_ethernet_milight_hub/lib/Helpers/Size.h

12 lines
136 B
C
Raw Normal View History

2021-01-15 21:49:01 +00:00
#include <Arduino.h>
#ifndef _SIZE_H
#define _SIZE_H
template<typename T, size_t sz>
size_t size(T(&)[sz]) {
return sz;
}
#endif