openFrameworks
openFrameworks copied to clipboard
Deprecate macros (e.g. PI, RAD_TO_DEG, etc) and remove from the core, fixes #5163.
I think I've gotten all of them, the waiting on CI.
Fixes #5163
@arturoc no?
I would be in favor of this (with a bit of double checking it doesn't break anything) but I think we should have enable deprecated macros by default for a few versions.
Is it possible to do an inline warning when people use the old macros like PI or ABS? That really helps getting people to switch over.
yes feel free to rebase and merge not sure why it wasn't merged before sorry
I will work on rebasing this today.
@bakercp if you are able to rebase and merge would be awesome. Otherwise @dimitre or I can take a stab at it. Thanks again for this!! 🙂
Hi @ofTheo - unfortunately I don't have the bandwidth to merge this at the moment.
No worries @bakercp, thanks for letting us know. 👍 I can pull this into another branch and do a PR.
To @ofZach's point I think we will need to update examples too ( see: https://github.com/openframeworks/openFrameworks/search?p=3&q=PI )
So I can take care of that. I think I'll aim to deprecate first ( so leave the legacy macro define for the next release ) then we can comment it out for the release after that.
Thanks for all of this!