SWIG bindings build, compile, and appear to work for python. Will port over tests next.
This commit is contained in:
parent
21f16ebefd
commit
902ca46b4d
2 changed files with 9 additions and 3 deletions
|
|
@ -1,5 +1,11 @@
|
||||||
%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"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -666,7 +666,7 @@ HParsedToken *h_act_ignore(const HParseResult *p);
|
||||||
// {{{ 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);
|
||||||
// }}}
|
// }}}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue