Skip to content

Commit

Permalink
Update fenster_mac.h
Browse files Browse the repository at this point in the history
  • Loading branch information
CardealRusso authored Oct 19, 2024
1 parent 0f234ef commit db6c624
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fenster/fenster_mac.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <CoreGraphics/CoreGraphics.h>
#include <objc/NSObjCRuntime.h>
#include <objc/objc-runtime.h>
#include <Cocoa/Cocoa.h>

#define msg(r, o, s) ((r(*)(id, SEL))objc_msgSend)(o, sel_getUid(s))
#define msg1(r, o, s, A, a) ((r(*)(id, SEL, A))objc_msgSend)(o, sel_getUid(s), a)
Expand Down Expand Up @@ -187,4 +188,4 @@ FENSTER_API void fenster_resize(struct fenster *f, int width, int height) {
msg2(void, f->wnd, "setContentSize:", NSSize, frame.size, id, nil);
msg(void, f->wnd, "center");
}
#endif /* FENSTER_MAC_H */
#endif /* FENSTER_MAC_H */

0 comments on commit db6c624

Please sign in to comment.