mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Guard all malloc, realloc and free() fonctions with check_that_malloc_is_allowed()
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
c730290fa0
commit
9b48d10215
@@ -225,4 +225,7 @@ EIGEN_DECLARE_TEST(nomalloc)
|
||||
CALL_SUBTEST_6(test_reference(Matrix<float,32,32>()));
|
||||
CALL_SUBTEST_7(test_reference(R1));
|
||||
CALL_SUBTEST_8(Ref<MatrixXd> R2 = M1.topRows<2>(); test_reference(R2));
|
||||
|
||||
// freeing is now possible
|
||||
Eigen::internal::set_is_malloc_allowed(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user