hammer/src/bindings/swig/hammer.i

26 lines
503 B
OpenEdge ABL
Raw Normal View History

%module hammer
%include "stdint.i"
%include "typemaps.i"
%apply char [ANY] { uint8_t [ANY] };
#if defined(SWIGPYTHON)
%typemap(in) uint8_t* {
$1 = (uint8_t*)PyString_AsString($input);
}
#else
#warning no "in" typemap defined
#endif
// All the include paths are relative to the build, i.e., ../../. If you need to build these manually (i.e., not with scons), keep that in mind.
%{
#include "allocator.h"
#include "hammer.h"
#include "internal.h"
%}
%include "allocator.h"
%include "hammer.h"
2013-11-16 08:12:29 +01:00