Skip to content

Commit

Permalink
fixed selector() warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Nov 27, 2023
1 parent 0462e45 commit c26b938
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions examples/controls/checkbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ NSButton* create_checkbox(checkBox checkbox) {
return result;
}

#define selector(function) sel_getUid(#function":")


int main(int argc, char* argv[]) {
NSApp = NSApplication_sharedApplication();
Expand Down
2 changes: 0 additions & 2 deletions examples/controls/trackbar.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ bool windowShouldClose(id sender) {
return true;
}

#define selector(function) sel_getUid(#function":")

int main(int argc, char* argv[]) {
// Convert C functions to Objective-C methods (refer to the 'si_func_to_SEL' comment from 'examples/menu.c' for more).
si_func_to_SEL(SI_DEFAULT, windowShouldClose);
Expand Down

0 comments on commit c26b938

Please sign in to comment.