Sane API design (AKA C's #ifdef hell)
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Fri Apr 17 13:14:35 UTC 2026
On 18/04/2026 12:57 AM, Dennis wrote:
> On Friday, 17 April 2026 at 11:54:32 UTC, Dejan Lekic wrote:
>> Your example is a tip of the iceberg. People who read this thread
>> would see your reply and think "ah, it is not so bad". I encourage
>> them to look at the bindbc-opengl to understand how difficult it is to
>> do good bindings for D.
>
> Can you demonstrate how the C pre-processor would make bindbc-opengl
> easier?
There is no need for ImportC for this.
There is a perfectly good description of OpenGL in XML format:
https://github.com/KhronosGroup/OpenGL-Registry/blob/main/xml/gl.xml
More information about the Digitalmars-d
mailing list