1
0
mirror of https://github.com/esphome/esphome.git synced 2025-02-07 21:51:00 +00:00
esphome/esphome/core/macros.h
Oxan van Leeuwen cdda648360
Generate ARDUINO_VERSION_CODE in Python code (#3101)
Co-authored-by: Otto winter <otto@otto-winter.com>
2022-01-24 10:34:34 +01:00

5 lines
196 B
C

#pragma once
// Helper macro to define a version code, whos evalue can be compared against other version codes.
#define VERSION_CODE(major, minor, patch) ((major) << 16 | (minor) << 8 | (patch))