nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sdl2 & gamnit: add mouse wheel events
[nit.git]
/
tests
/
test_ffi_cpp_types.nit
diff --git
a/tests/test_ffi_cpp_types.nit
b/tests/test_ffi_cpp_types.nit
index
6cdd3f5
..
364ec9e
100644
(file)
--- a/
tests/test_ffi_cpp_types.nit
+++ b/
tests/test_ffi_cpp_types.nit
@@
-33,13
+33,13
@@
extern class CppVector in "C++" `{vector<int>*`}
# Adds an element to the end of the vector
fun push(v: Int) in "C++" `{
# Adds an element to the end of the vector
fun push(v: Int) in "C++" `{
- recv->push_back(v);
+ self->push_back(v);
`}
# Pops an element from the end of the vector
fun pop: Int in "C++" `{
`}
# Pops an element from the end of the vector
fun pop: Int in "C++" `{
- long val = recv->back();
- recv->pop_back();
+ long val = self->back();
+ self->pop_back();
return val;
`}
end
return val;
`}
end