Closed Kreeblah closed 2 years ago
I'm not opposed to changing the name, honestly. I may just replace it with a constexpr function with some unique name that takes a ref to a void* pointer to ensure the same functionality of setting nullptr when done. I'll give that a try quickly.
I've chosen to address this ATM by renaming them but keeping them as macros. Main reason is that to make them functions would require std::source_location, which I'm unaware of compiler support for ATM (ie VS 2019 doesn't seem to have it, though VS 2022 should?)
Makes sense. It builds for me now with that change, so I'm all good now.
Thank you!
I'm not really sure what the best way to go about addressing this is, given how common this call is, but in
mem/mem.h
, there's the following definition:This causes the following error when building on macOS:
That definition can be
ifdef
d away, but then it'd lose the guarantee ofptr
beingNULL
afterwards. Alternately, these definitions could be renamed to be specific to this project, but it'd be easy to forget that and use the regular methods instead. There might be other ways of fixing this, too, but those are the two I was able to come up with off the top of my head.I'm happy to do some work to fix this to get the project building on macOS again, but I was hoping to get your thoughts on your preferred way to go about it first.