File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 1010 */
1111#define ALIVE_CELL 'o'
1212
13+ /**
14+ * @def ALIVE_CELL_NG
15+ * @brief Represents a cell that is going to be alive in the next generation.
16+ *
17+ * @warning The value of `ALIVE_CELL_NG` must be a single character and must not be equal to
18+ * `ALIVE_CELL`, `DEAD_CELL`, or `DEAD_CELL_NG` macros.
19+ */
20+ #define ALIVE_CELL_NG '1'
21+
1322/**
1423 * @def DEAD_CELL
1524 * @brief Represents a dead cell.
1827 */
1928#define DEAD_CELL ' '
2029
30+ /**
31+ * @def DEAD_CELL_NG
32+ * @brief Represents a cell that is going to be dead in the next generation.
33+ *
34+ * @warning The value of `DEAD_CELL_NG` must be a single character and must not be equal to
35+ * `ALIVE_CELL`, `ALIVE_CELL_NG`, or `DEAD_CELL` macros.
36+ */
37+ #define DEAD_CELL_NG '0'
38+
2139/**
2240 * @def PATTERN_ROWS
2341 * @brief Defines the number of rows in a 2D array pattern.
You can’t perform that action at this time.
0 commit comments