Closed mundusnine closed 1 year ago
Feel free to submit a pr that changes them into functions
@mundusnine I opened a pull request, if you want to take a look
For anyone wondering, the actual PR that was done was too complex. A simpler solution is talked about here
General whinning
One of my biggest qualms(issue) with the original nobuild was the use of defines for code that is essentially a function.
Why ? Well in C, debuggability is a major plus in the language, and functions that are implemented as defines remove this feature from the language. Some defines make sense but not for all multiline code imo.
Maybe you have a logical reason for using a lot of defines(generally), sadly my ugabooga software developer brain doesn't know it or can't deduce it.
The offending funcs
The main functions that should be functions imho are
Reasoning
These functions are used in a bunch a defines so if at it least these functions would not be defines users could debug and find out how they shot themselves in the foot.
Thanks for your work on this btw. Really cool project !