Sha256: d01ac88a978d57e903554ac8aee23afa58d0f6ab304b5d65f529291020465d8d
Contents?: true
Size: 657 Bytes
Versions: 6
Compression:
Stored size: 657 Bytes
Contents
%module marisa %include "cstring.i" %include "exception.i" %{ #include "marisa-swig.h" %} %apply (char *STRING, int LENGTH) { (const char *ptr, std::size_t length) }; %cstring_output_allocate_size(const char **ptr_out, std::size_t *length_out, ); %cstring_output_allocate_size(const char **ptr_out_to_be_deleted, std::size_t *length_out, delete [] (*$1)); %exception { try { $action } catch (const marisa::Exception &ex) { SWIG_exception(SWIG_RuntimeError, ex.what()); } catch (...) { SWIG_exception(SWIG_UnknownError,"Unknown exception"); } } %include "marisa-swig.h" %constant size_t INVALID_KEY_ID = MARISA_INVALID_KEY_ID;
Version data entries
6 entries across 6 versions & 1 rubygems