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 {
59
59
```
60
60
61
61
```
62
- //In Cxx.cpp
62
+ //In Cxx.hpp
63
+
64
+ #ifndef Cxx_hpp
65
+ #define Cxx_hpp
63
66
64
- #include "Cxx.hpp"
65
67
int cxxFunction(int n) {
66
68
return n;
67
69
}
68
-
70
+ #endif
69
71
```
70
72
71
73
```
72
- //In Cxx.hpp
73
-
74
- #ifndef Cxx_hpp
75
- #define Cxx_hpp
74
+ //In Cxx.cpp
76
75
76
+ #include "Cxx.hpp"
77
77
int cxxFunction(int n);
78
78
79
- #endif
80
79
81
80
```
82
81
@@ -198,7 +197,7 @@ CxxInterop.main()
198
197
199
198
```
200
199
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
202
201
203
202
- To generate an Xcode project run ` cmake -GXcode `
204
203
- To generate with Ninja run ` cmake -GNinja `
You can’t perform that action at this time.
0 commit comments