-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify pointer assignment and registration API
Make an API that registers and sets the pointer to the struct in a single call. The function only expects the objects now and deals with the calls internally. This significantly improves the readability of the code, and also significantly reduces the chances for human error where the previous GetPointer call for example as called on a different struct member than AddPointer. Now it is only defined once on call site.
- Loading branch information
Showing
14 changed files
with
119 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.