-
- Downloads
don't check Vec/Mat item access in C++ by default
Some compilers (including gcc 4.2) seem to have difficulties to inline functions with exceptions, even though it would be possible to know at compile-time that the exceptions never get thrown. The boundary checked versions for item access for Vec/Mat classes are available as the VecX/MatX::At methods. The Python export has been adapted to use the At methods, so guarantee we never crash from Python.
Showing
- modules/geom/pymod/export_mat2.cc 11 additions, 2 deletionsmodules/geom/pymod/export_mat2.cc
- modules/geom/pymod/export_mat3.cc 10 additions, 2 deletionsmodules/geom/pymod/export_mat3.cc
- modules/geom/pymod/export_mat4.cc 27 additions, 16 deletionsmodules/geom/pymod/export_mat4.cc
- modules/geom/pymod/export_vec2.cc 6 additions, 2 deletionsmodules/geom/pymod/export_vec2.cc
- modules/geom/pymod/export_vec3.cc 6 additions, 2 deletionsmodules/geom/pymod/export_vec3.cc
- modules/geom/pymod/export_vec4.cc 7 additions, 2 deletionsmodules/geom/pymod/export_vec4.cc
- modules/geom/src/mat2.hh 21 additions, 6 deletionsmodules/geom/src/mat2.hh
- modules/geom/src/mat3.hh 18 additions, 6 deletionsmodules/geom/src/mat3.hh
- modules/geom/src/mat4.cc 0 additions, 11 deletionsmodules/geom/src/mat4.cc
- modules/geom/src/mat4.hh 28 additions, 4 deletionsmodules/geom/src/mat4.hh
- modules/geom/src/vec2.hh 15 additions, 4 deletionsmodules/geom/src/vec2.hh
- modules/geom/src/vec3.hh 15 additions, 4 deletionsmodules/geom/src/vec3.hh
- modules/geom/src/vec4.hh 16 additions, 4 deletionsmodules/geom/src/vec4.hh
- modules/geom/tests/test_geom.py 98 additions, 1 deletionmodules/geom/tests/test_geom.py
- modules/geom/tests/test_mat2.cc 0 additions, 9 deletionsmodules/geom/tests/test_mat2.cc
- modules/geom/tests/test_mat3.cc 0 additions, 12 deletionsmodules/geom/tests/test_mat3.cc
- modules/geom/tests/test_mat4.cc 0 additions, 11 deletionsmodules/geom/tests/test_mat4.cc
- modules/geom/tests/test_vec2.cc 0 additions, 10 deletionsmodules/geom/tests/test_vec2.cc
- modules/geom/tests/test_vec3.cc 0 additions, 17 deletionsmodules/geom/tests/test_vec3.cc
- modules/geom/tests/test_vec4.cc 0 additions, 12 deletionsmodules/geom/tests/test_vec4.cc
Loading
Please register or sign in to comment