Skip to content

Commit 9e6573e

Browse files
author
Marcus Tomlinson
committed
Cleaned up example code
1 parent f022f72 commit 9e6573e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

example/main.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ int main()
156156
Ecs_Python_Cmd( "newSimple.Show( 'once more.' )" );
157157
Ecs_Python_Cmd( "print('')" );
158158

159-
// Use Class Instance From C++
160-
// ===========================
159+
// Use The Class Instance From C++
160+
// ===============================
161161
std::cout << "Ok, " << newSimple.GetLastMessage().c_str() << std::endl;
162162

163163

@@ -166,17 +166,18 @@ int main()
166166
SimpleFactory simpleFactory;
167167
Ecs_Expose_Object( &simpleFactory, "simpleFactory" );
168168

169+
// Create A New Class Instance From Python
170+
// =======================================
169171
Ecs_Python_Cmd( "anotherSimple = Simple( simpleFactory.NewSimple( '\\'Allo ' ) )" );
170172
Ecs_Python_Cmd( "print( anotherSimple.GetLastMessage() + '\\'Allo!')" );
171173
Ecs_Python_Cmd( "simpleFactory.DeleteSimple( anotherSimple() )" );
172174

173-
getchar();
174-
175175

176176
// Finalize EcsPython
177177
// ==================
178178
Ecs_Finalize();
179179

180+
getchar();
180181
return 0;
181182
}
182183

0 commit comments

Comments
 (0)