AppKit: convert parameter-only macros to file-scope functions

- CABackingStore PIXEL, CPDragServer DRAGGING_WINDOW,
  CPOutlineView SELECTION_SHOULD_CHANGE and SHOULD_SELECT_ITEM
  become plain functions; call syntax is unchanged at all sites
- these macros reference only their parameters, so no ambient state
  is involved
This commit is contained in:
David Richardson committed 2026-10-06 17:41:26 -06:00
1 parent 37d4d5eb96
commit 315ed7f2df
3 files changed
+16 -4

No files matched your search

+4 -1
View File
@@ -23,7 +23,10 @@
@import "CGGeometry.j"
@import "CPCompatibility.j"
#define PIXEL(pixels) pixels + "px";
function PIXEL(pixels)
{
return pixels + "px";
}
function CABackingStoreGetContext(aBackingStore)