Document %insert filename and add test for it
This commit is contained in:
parent
a699944c95
commit
88e2d02ead
3 changed files with 37 additions and 6 deletions
2
Examples/test-suite/insert_directive.h
Normal file
2
Examples/test-suite/insert_directive.h
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
// %inserted code %header from file
|
||||
int inserted_header4(int i) { return inserted_header3(i); }
|
||||
|
|
@ -27,9 +27,11 @@ int inserted_header2(int i) { return inserted_header1(i); }
|
|||
int inserted_header3(int i) { return inserted_header2(i); }
|
||||
%}
|
||||
|
||||
%header "insert_directive.h"
|
||||
|
||||
%wrapper %{
|
||||
// %inserted code %wrapper
|
||||
int inserted_wrapper(int i) { return inserted_header3(i); }
|
||||
int inserted_wrapper(int i) { return inserted_header4(i); }
|
||||
%}
|
||||
|
||||
%init %{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue