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:
William S Fulton 2017-03-24 20:06:03 +00:00
commit 3797eaac89
4 changed files with 12 additions and 6 deletions

View file

@ -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]]]

View file

@ -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)
{