summaryrefslogtreecommitdiff
path: root/src/examples/eolian_cxx
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/examples/eolian_cxx
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/examples/eolian_cxx')
-rw-r--r--src/examples/eolian_cxx/eolian_cxx_inherit_01.cc2
-rw-r--r--src/examples/eolian_cxx/eolian_cxx_simple_01.cc2
-rw-r--r--src/examples/eolian_cxx/eolian_cxx_simple_01_cxx_impl.cc2
3 files changed, 6 insertions, 0 deletions
diff --git a/src/examples/eolian_cxx/eolian_cxx_inherit_01.cc b/src/examples/eolian_cxx/eolian_cxx_inherit_01.cc
index 2fedf12..5cd6b20 100644
--- a/src/examples/eolian_cxx/eolian_cxx_inherit_01.cc
+++ b/src/examples/eolian_cxx/eolian_cxx_inherit_01.cc
@@ -8,6 +8,8 @@
8 8
9#include "ns_colourable.eo.hh" 9#include "ns_colourable.eo.hh"
10#include "ns_colourablesquare.eo.hh" 10#include "ns_colourablesquare.eo.hh"
11#include "ns_colourable.eo.impl.hh"
12#include "ns_colourablesquare.eo.impl.hh"
11 13
12#include <eo_inherit.hh> 14#include <eo_inherit.hh>
13 15
diff --git a/src/examples/eolian_cxx/eolian_cxx_simple_01.cc b/src/examples/eolian_cxx/eolian_cxx_simple_01.cc
index eb093d9..028a429 100644
--- a/src/examples/eolian_cxx/eolian_cxx_simple_01.cc
+++ b/src/examples/eolian_cxx/eolian_cxx_simple_01.cc
@@ -9,6 +9,8 @@
9 9
10#include "ns_colourable.eo.hh" 10#include "ns_colourable.eo.hh"
11#include "ns_colourablesquare.eo.hh" 11#include "ns_colourablesquare.eo.hh"
12#include "ns_colourable.eo.impl.hh"
13#include "ns_colourablesquare.eo.impl.hh"
12 14
13int 15int
14main() 16main()
diff --git a/src/examples/eolian_cxx/eolian_cxx_simple_01_cxx_impl.cc b/src/examples/eolian_cxx/eolian_cxx_simple_01_cxx_impl.cc
index 1120978..2ca0e97 100644
--- a/src/examples/eolian_cxx/eolian_cxx_simple_01_cxx_impl.cc
+++ b/src/examples/eolian_cxx/eolian_cxx_simple_01_cxx_impl.cc
@@ -9,6 +9,8 @@
9 9
10#include "colourable.eo.hh" 10#include "colourable.eo.hh"
11#include "colourablesquare.eo.hh" 11#include "colourablesquare.eo.hh"
12#include "ns_colourable.eo.impl.hh"
13#include "ns_colourablesquare.eo.impl.hh"
12 14
13int 15int
14main() 16main()