A guide to create complete bindings in minutes for every C library

https://rm4n0s.github.io/posts/4-lookmaxxing-gremlins

8 Likes

Call me a langist (= like a racist but for programming languages), but C is ugly.

– langist :sweat_smile:

olive.c
^^^^^^
Very poggers! Ya’ll beat me to it. :smiling_face_with_tear:

I’ve been looking for something like this for a while!

I’m not sure I get the macros part tho, it reads like the author just gave up on them.

Some libraries can’t function without using their macros; does anyone have an example of how to translate them?

2 Likes

This can be very useful for prototyping but I wouldnt use it in a serious project, becuse you would usually get better bindings by doing it manually instead

2 Likes

Make them Odin (not foreign) functions with #force_inline? I haven’t really looked into #force_inline so maybe I’m wrong.