| Title | Remove variadic macros |
|---|---|
| Author | Sunny-Maxis |
| Created | Fri, 14 Mar 2025 04:42:56 +0000 |
| State | open |
I understand this is a massive undertaking. However, there is a demand for such browsers on systems that do not run GCC.
My boss, Kazuo Kuroi, got around this on libao (much smaller program) by converting the macros to static inlines:
If it would be helpful I could probably attempt to stage something within the next month once we are finished with release testing our major projects
Hello Rodrigo,
GCC works fine with IRIX to an extent, but it has some annoyances:
I see. I won't oppose switching the variadic macros to functions, as long as we can make the compiler not emit any instruction when the debugging code is disabled (so we don't introduce any slowdown). However, I don't think I will prioritize this on my list of tasks, so you are welcome to provide a PR in this direction.
I will talk to him about it and see if we can fork the repo at some point and make it happen. Thanks for being open to it.
We could probably replace all of them, but it would be a major pain. Removing C++ macros is useful because then we could then lower the standard to C++04, but for C macros I don't think it would be very helpful apart for mipspro.
I would consider exploring this for C only if we find a big blocker that prevents using GCC.