Skip to content
Snippets Groups Projects
Commit 73eabc7b authored by Meredith L. Patterson's avatar Meredith L. Patterson Committed by Dan Hirsch
Browse files

SWIG bindings build, compile, and appear to work for python. Will port over tests next.

parent 0e4253d0
No related branches found
No related tags found
No related merge requests found
%module hammer %module hammer
%import "allocator.h" %{
%import "hammer.h" #include "allocator.h"
#include "hammer.h"
#include "internal.h"
%}
%include "allocator.h"
%include "hammer.h"
...@@ -660,7 +660,7 @@ HParsedToken *h_act_ignore(const HParseResult *p, void* userdata); ...@@ -660,7 +660,7 @@ HParsedToken *h_act_ignore(const HParseResult *p, void* userdata);
// {{{ Benchmark functions // {{{ Benchmark functions
HAMMER_FN_DECL(HBenchmarkResults *, h_benchmark, HParser* parser, HParserTestcase* testcases); HAMMER_FN_DECL(HBenchmarkResults *, h_benchmark, HParser* parser, HParserTestcase* testcases);
void h_benchmark_report(FILE* stream, HBenchmarkResults* results); void h_benchmark_report(FILE* stream, HBenchmarkResults* results);
void h_benchmark_dump_optimized_code(FILE* stream, HBenchmarkResults* results); //void h_benchmark_dump_optimized_code(FILE* stream, HBenchmarkResults* results);
// }}} // }}}
// {{{ Token type registry // {{{ Token type registry
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment