c++: when api.location.file is defined, don't generate stack.hh

Make it easier to have fewer files.

* data/stack.hh: Don't generate stack.hh when api.location.file is
specified.
* tests/calc++.at, tests/output.at: Adjust tests.
This commit is contained in:
Akim Demaille
2018-10-06 13:27:49 +02:00
parent 3e6a075f7f
commit 57d69b04b2
3 changed files with 12 additions and 6 deletions

View File

@@ -22,7 +22,9 @@
b4_percent_define_ifdef([[api.stack.file]],
[b4_percent_define_check_values([[[[api.stack.file]],
[[none]]]])],
[b4_defines_if([m4_define([b4_stack_file], [stack.hh])])])
[b4_defines_if([b4_percent_define_ifdef([[api.location.file]],
[],
[m4_define([b4_stack_file], [stack.hh])])])])
# b4_stack_define