aboutsummaryrefslogtreecommitdiff
path: root/src/accessor.h
Commit message (Collapse)AuthorAgeFilesLines
* Use shorter spellings of __asm and __attributeGravatar Michael Smith 2025-08-031-1/+1
| | | | | | | Turns out, there's no need for the trailing underscores. Plus, glibc does some stupid stuff with __attribute__ for non-GCC compilers. Not that that matters here, but it seems like a good practice just to use the forms that never have such problems. And it's shorter too.
* Add type-safety to virtual calls and accessorsGravatar Michael Smith 2025-04-171-18/+20
| | | | | | | | | | | | This probably should have been the design from the start. It's still possible to use void pointers, and this is done in a couple of places for simplicity, but wherever possible, we have actual structs for things now. Additionally, in places where vtables are fiddled with, e.g. vtable hooks, we have actual struct definitions with vtable pointers so there's need for pointer-casting horror.
* Remove years from copyright headersGravatar Michael Smith 2025-04-071-1/+1
| | | | | | | | They're legally unnecessary as far as I know, and kind of annoying to maintain on a long-term basis. This was done with the consent of all 3 other contributors, in case anyone was wondering.
* Create and use macros to define accessor functionsGravatar Michael Smith 2024-09-281-0/+79
Avoids the need to manually mess around with mem_offset() and gamedata off_ and sz_ values as often, because that's kind of annoying. Should also make the codebase a little less confusing for new players.