blob: c366e80c8684ccc517e976dc2103c8b1f6cfc27f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef RALEIGH_UTIL_H
#define RALEIGH_UTIL_H
#include <stdint.h>
#define RGB(R, G, B) ((_pixel_t){.r = 0x##R, .g = 0x##G, .b = 0x##B})
#define RALEIGH_FG RGB(00, 00, 00)
#define RALEIGH_BG RGB(bf, bf, bf)
namespace raleigh {
struct coord {
uint32_t x;
uint32_t y;
coord(uint32_t x, uint32_t y);
coord();
};
void show_error_and_quitf(const char *fmt, ...) __attribute__ ((noreturn));
void show_error_popup_and_quitf(const char *fmt, ...) __attribute__ ((noreturn));
}
#endif
|