Comment redefinitions

This commit is contained in:
Milan Nikolic 2024-05-08 11:25:08 +02:00
parent 64a63d5914
commit 451c14ce9f
No known key found for this signature in database
GPG key ID: 9229D0EAA3AA4E75

View file

@ -893,13 +893,13 @@ typedef struct { i32 x, y; } RGFW_vector;
typedef void NSApplication;
typedef void NSScreen;
typedef void NSEvent;
typedef void NSString;
//typedef void NSString;
typedef void NSOpenGLContext;
typedef void NSPasteboard;
typedef void NSColor;
typedef void NSArray;
//typedef void NSArray;
typedef void NSImageRep;
typedef void NSImage;
//typedef void NSImage;
typedef void NSOpenGLView;
@ -997,29 +997,29 @@ typedef struct { i32 x, y; } RGFW_vector;
/* Creates an Objective-C method (SEL) from a regular C function with the option to set the register name.*/
#define si_func_to_SEL_with_name(class_name, register_name, function) si_impl_func_to_SEL_with_name(class_name, register_name":", function)
NSRect NSMakeRect(double x, double y, double width, double height) {
NSRect r;
r.origin.x = x;
r.origin.y = y;
r.size.width = width;
r.size.height = height;
//NSRect NSMakeRect(double x, double y, double width, double height) {
//NSRect r;
//r.origin.x = x;
//r.origin.y = y;
//r.size.width = width;
//r.size.height = height;
return r;
}
//return r;
//}
NSPoint NSMakePoint(double x, double y) {
NSPoint point;
point.x = x;
point.y = y;
return point;
}
//NSPoint NSMakePoint(double x, double y) {
//NSPoint point;
//point.x = x;
//point.y = y;
//return point;
//}
NSSize NSMakeSize(double w, double h) {
NSSize size;
size.width = w;
size.height = h;
return size;
}
//NSSize NSMakeSize(double w, double h) {
//NSSize size;
//size.width = w;
//size.height = h;
//return size;
//}
void* si_array_init(void* allocator, size_t sizeof_element, size_t count) {
void* array = si_array_init_reserve(sizeof_element, count);