You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The reason will be displayed to describe this comment to others. Learn more.
On further contemplation, this will break several tinkers on PGEtinker. There currently exists a macro with the same name.... and to complicate it further, it has since been brought to my attention that this macro sucks and is prone to ... well lots of bad things because it makes multiple function calls without encapsulating them in something that makes it work in situations like
if(some_predicate)
FILE_RESOLVE(..., ...);
where the code would expand and cause errors unexpected logic errors that are difficult to debug. To mitigate this, I switched to a function using the same name, implemented like so:
not only do I recommend the function instead of the macro solution, I also recommend putting it into the olc namespace in order to prevent collision with existing tinkers... if adopted, in PGEtinker next I will remove the function from the examples and point them to olc::FILE_RESOLVE or whatever it ultimately gets called. I suck at names as well..
Or.. and I know you're gonna hate me for this because of how hard i pushed for it years ago... we could just drop it from PGE and let PGEtinker handle it however it wants. Thoughts?
ff632a5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On further contemplation, this will break several tinkers on PGEtinker. There currently exists a macro with the same name.... and to complicate it further, it has since been brought to my attention that this macro sucks and is prone to ... well lots of bad things because it makes multiple function calls without encapsulating them in something that makes it work in situations like
where the code would expand and cause errors unexpected logic errors that are difficult to debug. To mitigate this, I switched to a function using the same name, implemented like so:
not only do I recommend the function instead of the macro solution, I also recommend putting it into the
olc
namespace in order to prevent collision with existing tinkers... if adopted, in PGEtinker next I will remove the function from the examples and point them toolc::FILE_RESOLVE
or whatever it ultimately gets called. I suck at names as well..Or.. and I know you're gonna hate me for this because of how hard i pushed for it years ago... we could just drop it from PGE and let PGEtinker handle it however it wants. Thoughts?