Skip to content

Commit

Permalink
Avoid accessing instance variables in inline functions
Browse files Browse the repository at this point in the history
`DPSOperators.h` exports various inline functions which
access the `methods` variable of the `NSGraphicsContext`
class.  This will result in accessing instance variables
across module boundaries if these functions are used in
external libraries.

Accessing instance variables across module boundaries is
not supported when building on Windows using the Visual
Studio toolchain.

This patch addes a `methods` function on `NSGraphicsContext`
which returns the variable, and reworks the inline
functions to use the `methods` function instead of directly
accessing the variable.
  • Loading branch information
qmfrederik committed Apr 1, 2023
1 parent e64d8d4 commit 3ec06f7
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 103 deletions.
Loading

0 comments on commit 3ec06f7

Please sign in to comment.