Mercurial > octave
comparison liboctave/array/idx-vector.h @ 21131:54527108599a
store more --enable-FEATURE info in octave_config_info
* configure.ac: (ENABLE_64, ENABLE_BOUNDS_CHECK, ENABLE_DOCS,
ENABLE_FLOAT_TRUNCATE, ENABLE_JIT, ENABLE_OPENMP): New variables.
macros. Handle consistently and AC_DEFINE them.
* common.mk, toplev.cc, oct-conf.in.h: Substitute new variables and
store them in octave_config_info.
* oct-conf-post.in.h: Provide old macro names for compatibility.
* Array.cc, Array.h, DiagArray2.h, PermMatrix.h, Range.cc, Sparse.h,
dim-vector.h, idx-vector.h, oct-refcount.h: Fix uses of macros.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 21 Jan 2016 18:18:16 -0500 |
parents | f7084eae3318 |
children | 623fc7d08cc6 |
comparison
equal
deleted
inserted
replaced
21130:9d7619605e5e | 21131:54527108599a |
---|---|
560 octave_idx_type checkelem (octave_idx_type n) const | 560 octave_idx_type checkelem (octave_idx_type n) const |
561 { return rep->checkelem (n); } | 561 { return rep->checkelem (n); } |
562 | 562 |
563 octave_idx_type operator () (octave_idx_type n) const | 563 octave_idx_type operator () (octave_idx_type n) const |
564 { | 564 { |
565 #if defined (BOUNDS_CHECKING) | 565 #if defined (ENABLE_BOUNDS_CHECK) |
566 return rep->checkelem (n); | 566 return rep->checkelem (n); |
567 #else | 567 #else |
568 return rep->xelem (n); | 568 return rep->xelem (n); |
569 #endif | 569 #endif |
570 } | 570 } |