diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-09-28 07:59:50 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-09-28 07:59:50 +0100 |
commit | c80955dcc6b663c250a1f2552b626770fbd46a94 (patch) | |
tree | 4b6b98eb03095cbc722b7f5bc2e0bbfa9568e8b3 /src/duk-libdom.h | |
parent | 767e69459ca7b4c13fe93875177040ab3eec8b56 (diff) | |
download | nsgenbind-c80955dcc6b663c250a1f2552b626770fbd46a94.tar.gz nsgenbind-c80955dcc6b663c250a1f2552b626770fbd46a94.tar.bz2 |
annotates binding AST with source linenumber and file
Uses annotated AST to put line directives in the generated source so
any code errors in the binding can be easily located.
Diffstat (limited to 'src/duk-libdom.h')
-rw-r--r-- | src/duk-libdom.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/duk-libdom.h b/src/duk-libdom.h index b9eeea3..dd27420 100644 --- a/src/duk-libdom.h +++ b/src/duk-libdom.h @@ -56,6 +56,19 @@ int output_tool_prologue(FILE* outf); */ int output_cdata(FILE* outf, struct genbind_node *node, enum genbind_node_type nodetype); + +/** + * output c code with line directives if possible. + * + * used for any cdata sections + * + * \param outf The file handle to write output. + * \param node The node to search. + * \param nodetype the type of child node to search for. + * \return The number of nodes written or 0 for none. + */ +int output_ccode(FILE* outf, struct genbind_node *node); + /** * output character data of method node of given type. * |