[ET Trac] [Einstein Toolkit] #1186: Provide a version of CCTK_WARN which never returns

Einstein Toolkit trac-noreply at einsteintoolkit.org
Tue Nov 27 14:04:01 CST 2012


#1186: Provide a version of CCTK_WARN which never returns
--------------------------+-------------------------------------------------
  Reporter:  hinder       |       Owner:     
      Type:  enhancement  |      Status:  new
  Priority:  minor        |   Milestone:     
 Component:  Cactus       |     Version:     
Resolution:               |    Keywords:     
--------------------------+-------------------------------------------------

Comment (by eschnett):

 We can't use { } in a macro without do...while; this would do very strange
 things if people called CCTK_VError in an if statement that also has an
 else branch.

 The noreturn attribute would, same as all other attributes, be
 autoconfigured. It would be automatically left out if a compiler doesn't
 support it.

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1186#comment:9>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list