modula3 / cm3

Critical Mass Modula-3
http://modula3.github.io/cm3/
Other
139 stars 25 forks source link

How to write binding to C library? #1067

Closed ghost closed 2 years ago

ghost commented 2 years ago

I want to use this C library: https://github.com/dbsoft/dwindows

As it's not very complex I prefer to write by hand (not using swig, but if it's needed I have no problems with it too).

VictorMiasnikov commented 2 years ago

IMHO, m3swig is more useful.

ghost commented 2 years ago

IMHO, m3swig is more useful.

It's useful for C++. This is plain C. Isn't that mean the C interface of yours is too complex for humans to write so need to depend on a machine generator?

VictorMiasnikov commented 2 years ago

08.09.2022, 20:21, "zpu2tw" @.***>:

IMHO, m3swig is more useful.

It's useful for C++. This is plain C. Isn't that mean the C interface of yours is too complex for humans to write so need to depend on a machine generator?

In any key try m3swig  -) If You want, of course  -)