mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
Made CELL_TRIVIAL_INITIALIZER compatable between C and C++
This commit is contained in:
parent
5e60e84fdf
commit
87d1ba17e6
@ -577,7 +577,12 @@ typedef struct cell {
|
||||
uint64_t channels; // + 8B == 16B
|
||||
} cell;
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define CELL_TRIVIAL_INITIALIZER { }
|
||||
#else
|
||||
#define CELL_TRIVIAL_INITIALIZER {0}
|
||||
#endif
|
||||
|
||||
#define CELL_CHAR_INITIALIZER(c) { .gcluster = (htole(c)), .gcluster_backstop = 0, .reserved = 0, .stylemask = 0, .channels = 0, }
|
||||
#define CELL_INITIALIZER(c, s, chan) { .gcluster = (htole(c)), .gcluster_backstop = 0, .reserved = 0, .stylemask = (s), .channels = (chan), }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user