Fixed small typo in comment.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9783 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ddbce633fd
commit
949b6238e8
1 changed files with 3 additions and 3 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
/*
|
/*
|
||||||
GC_VALUE is used as a replacement of Ruby's VALUE.
|
GC_VALUE is used as a replacement of Ruby's VALUE.
|
||||||
GC_VALUE automatically handles registering and unregistering
|
GC_VALUE automatically handles registering and unregistering
|
||||||
of the underlying ruby object with the GC.
|
of the underlying Ruby object with the GC.
|
||||||
|
|
||||||
It can be used if you want to create STL containers of VALUEs, such as:
|
It can be used if you want to create STL containers of VALUEs, such as:
|
||||||
|
|
||||||
|
|
@ -12,12 +12,12 @@
|
||||||
or as a member variable:
|
or as a member variable:
|
||||||
|
|
||||||
struct A {
|
struct A {
|
||||||
GC_VALUE obj;
|
GC_VALUE _obj;
|
||||||
A(VALUE o) : _obj(o) {
|
A(VALUE o) : _obj(o) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
or as a input/output value (not much use for this, as VALUE works as
|
or as a input/output value (not much use for this, as VALUE works just as
|
||||||
well here, thou):
|
well here, thou):
|
||||||
|
|
||||||
GC_VALUE func(GC_VALUE obj) {
|
GC_VALUE func(GC_VALUE obj) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue