Ignore:
Timestamp:
Sep 11, 2014 7:06:21 PM (6 years ago)
Author:
bradbell
Message:
  1. g++ 4.8.2 has shadow warnings by default, but eigen and fadbad do not

these warnings, so supress then in these cases.

  1. Move check that arguments come before result into on place,

CPPAD_ASSERT_ARG_BEFORE_RESULT (only one argument case so far).

main.cpp: fix shadowing of index variable.
CMakeLists.txt: adapt to change in teuchos library name.
sparse_jacobian.cpp: fix a shadowed variable.
check_svn_id.sh: ignore svn_commit.sh.
gpl_license.sh: ignore svn_commit.sh.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cppad/local/cppad_assert.hpp

    r3232 r3320  
    198198# endif
    199199
    200 # endif
     200/*!
     201\def CPPAD_ASSERT_ARG_BEFORE_RESULT
     202Check that operator arguments come before result.
     203
     204If \c NDEBUG is defined, this macro has no effect,
     205otherwise it calls the function assert_arg_before_result.
     206*/
     207# ifdef NDEBUG
     208# define CPPAD_ASSERT_ARG_BEFORE_RESULT(op, arg, result)
     209# else
     210# define CPPAD_ASSERT_ARG_BEFORE_RESULT(op, arg, result) \
     211        assert_arg_before_result(op, arg, result)
     212       
     213# endif
     214
     215# endif
Note: See TracChangeset for help on using the changeset viewer.