File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -59,24 +59,23 @@ struct ContentView: View {
5959```
6060
6161```
62- //In Cxx.cpp
62+ //In Cxx.hpp
63+
64+ #ifndef Cxx_hpp
65+ #define Cxx_hpp
6366
64- #include "Cxx.hpp"
6567int cxxFunction(int n) {
6668 return n;
6769}
68-
70+ #endif
6971```
7072
7173```
72- //In Cxx.hpp
73-
74- #ifndef Cxx_hpp
75- #define Cxx_hpp
74+ //In Cxx.cpp
7675
76+ #include "Cxx.hpp"
7777int cxxFunction(int n);
7878
79- #endif
8079
8180```
8281
@@ -198,7 +197,7 @@ CxxInterop.main()
198197
199198```
200199
201- - In your projects direcetoy , run ` cmake ` to generate the systems build files
200+ - In your project's directory , run ` cmake ` to generate the systems build files
202201
203202- To generate an Xcode project run ` cmake -GXcode `
204203- To generate with Ninja run ` cmake -GNinja `
You can’t perform that action at this time.
0 commit comments