Merge branch 'tamuratak-fix_ruby_bool'
* tamuratak-fix_ruby_bool: [ruby] must not do null check for VALUE obj, which can be 0x0 == Qfalse, a valid Ruby object.
This commit is contained in:
commit
3797eaac89
4 changed files with 12 additions and 6 deletions
|
|
@ -13,6 +13,8 @@ require 'swig_assert'
|
|||
require 'std_containers'
|
||||
include Std_containers
|
||||
|
||||
swig_assert_equal("[true, false]", "videntb([true, false])")
|
||||
|
||||
swig_assert_each_line(<<'EOF', binding)
|
||||
|
||||
cube = [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]
|
||||
|
|
|
|||
|
|
@ -115,6 +115,10 @@
|
|||
return v;
|
||||
}
|
||||
|
||||
std::vector<bool> videntb(const std::vector<bool>& v)
|
||||
{
|
||||
return v;
|
||||
}
|
||||
|
||||
int get_elem(const std::vector<int>& v, int index)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue