Swig for Euphoria
- Posted by jeremy (admin) Mar 04, 2009
- 919 views
I was looking at Swig for Euphoria by David Cunny. An example is:
pow.i {{{ %{
- include <math.h> %}
double pow(double, double); }}
Then it creates a .c file and a .e file. The .c file is compiled to a .dll, and the .e wraps the .dll.
What is the reason for creating the .c and .dll file? I could see if this was a project written in C for the sole purpose of providing functionality to Euphoria, but most of the time we are wrapping other libraries, such as sqlite, iup, gtk, etc...
Jeremy