summaryrefslogtreecommitdiff
path: root/src/tests/eolian_cxx/eolian_cxx_test_cyclic.cc
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-01-18 22:25:02 -0200
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-01-18 22:47:04 -0200
commita1f2db255b22052050baf0c04bb72146b22a6e99 (patch)
tree8499c057a7a0054f75fe3ab4719b2cc3659949d5 /src/tests/eolian_cxx/eolian_cxx_test_cyclic.cc
parent7f148feea8275d4ae3a366e5aead8170498089a6 (diff)
cxx: Modify how to generate C++ headers and allow cyclic dependencies
Allow cyclic dependencies in generated C++ headers by changing order of includes and creating forward declarations.
Diffstat (limited to 'src/tests/eolian_cxx/eolian_cxx_test_cyclic.cc')
-rw-r--r--src/tests/eolian_cxx/eolian_cxx_test_cyclic.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tests/eolian_cxx/eolian_cxx_test_cyclic.cc b/src/tests/eolian_cxx/eolian_cxx_test_cyclic.cc
index f338133c45..dcd88ac151 100644
--- a/src/tests/eolian_cxx/eolian_cxx_test_cyclic.cc
+++ b/src/tests/eolian_cxx/eolian_cxx_test_cyclic.cc
@@ -4,6 +4,13 @@
4 4
5#include <Eo.hh> 5#include <Eo.hh>
6 6
7extern "C" {
8typedef Eo Cyclic1;
9typedef Eo Cyclic2;
10}
11
12#include <cyclic1.eo.h>
13#include <cyclic2.eo.h>
7#include <cyclic1.eo.hh> 14#include <cyclic1.eo.hh>
8#include <cyclic2.eo.hh> 15#include <cyclic2.eo.hh>
9 16