dfhack/library/dfhack.i

29 lines
748 B
OpenEdge ABL

2010-02-26 14:23:43 -07:00
%module dfhack
%include "std_string.i"
%include "std_vector.i"
%include "stdint.i"
2010-02-27 05:24:32 -07:00
/* This goes to the header of the wrapper code */
2010-02-26 14:23:43 -07:00
%{
#define LINUX_BUILD
#define SWIG_WRAPPER
#include "DFTypes.h"
#include "DFHackAPI.h"
using namespace std;
using namespace DFHack;
%}
/* templates have to be instantiated for swig */
using namespace std;
namespace std
{
%template(MatglossVector) vector<DFHack::t_matgloss>;
%template(PlantMatglossVector) vector<DFHack::t_matglossPlant>;
%template(VeinVector) std::vector <DFHack::t_vein>;
%template(IceVeinVector) std::vector <DFHack::t_frozenliquidvein>;
}
2010-02-27 08:47:11 -07:00
%define DFHACK_EXPORT
2010-02-26 14:23:43 -07:00
/* Parse the header file to generate wrappers */
%include "DFTypes.h"
2010-02-27 08:47:11 -07:00
%include "DFHackAPI.h"
%enddef DFHACK_EXPORT