summaryrefslogtreecommitdiff
path: root/src/user/include/cxx/raleigh/util.h
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2021-03-05 18:07:48 -0500
committerBenji Dial <benji6283@gmail.com>2021-03-05 18:07:48 -0500
commit76e39eac8cee2175ec62a191f7c91ca53857e80c (patch)
tree156946f6e8f491235453aa3cbecfda43d6baa2a7 /src/user/include/cxx/raleigh/util.h
parent5e5e524f08ad653a7bf5d6e97f3a49f6c27d08fa (diff)
downloadportland-os-76e39eac8cee2175ec62a191f7c91ca53857e80c.tar.gz
more raleigh, including button and vbox widgets
Diffstat (limited to 'src/user/include/cxx/raleigh/util.h')
-rw-r--r--src/user/include/cxx/raleigh/util.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/user/include/cxx/raleigh/util.h b/src/user/include/cxx/raleigh/util.h
index d2ed13d..9142b69 100644
--- a/src/user/include/cxx/raleigh/util.h
+++ b/src/user/include/cxx/raleigh/util.h
@@ -5,11 +5,15 @@
#define RGB(R, G, B) ((_pixel_t){.r = 0x##R, .g = 0x##G, .b = 0x##B})
-struct coord {
- uint32_t x;
- uint32_t y;
- coord(uint32_t x, uint32_t y);
- coord();
-};
+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));
+}
#endif \ No newline at end of file