File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
#include " Wren++.h"
2
+ #include < cassert>
2
3
#include < cmath>
3
4
#include < cstdlib>
4
5
#include < cstring>
5
- #include < cassert>
6
6
7
7
// a small class to test class & method binding with
8
8
struct Vec3
@@ -101,16 +101,16 @@ void testMethodCall()
101
101
wrenpp::VM wren{};
102
102
103
103
wren.executeModule (" test_method" );
104
- auto passNum = wren.method (" main " , " passNumber" , " call(_)" );
104
+ auto passNum = wren.method (" test_method " , " passNumber" , " call(_)" );
105
105
passNum (5.0 );
106
106
passNum (5 .f );
107
107
passNum (5 );
108
108
passNum (5u );
109
109
110
- auto passBool = wren.method (" main " , " passBool" , " call(_)" );
110
+ auto passBool = wren.method (" test_method " , " passBool" , " call(_)" );
111
111
passBool (true );
112
112
113
- auto passStr = wren.method (" main " , " passString" , " call(_)" );
113
+ auto passStr = wren.method (" test_method " , " passString" , " call(_)" );
114
114
passStr (" hello" );
115
115
passStr (std::string (" hello" ));
116
116
}
You can’t perform that action at this time.
0 commit comments