You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/02/03 06:52:36 UTC

[GitHub] [incubator-mxnet] leezu commented on issue #13956: C API should *never* call abort()

leezu commented on issue #13956: C API should *never* call abort()
URL: https://github.com/apache/incubator-mxnet/issues/13956#issuecomment-581265363
 
 
   > After all replacements due to macro expansion and the defined unary operator have been performed, all remaining identifiers and keywords, except for true and false, are replaced with the pp-number 0
   
   https://stackoverflow.com/a/5085425/2560672
   
   Thus it is not true that `DMLC_LOG_FATAL_THROW` needs to be explicitly set to 0. Rather, if `DMLC_LOG_FATAL_THROW` is unset, `DMLC_LOG_FATAL_THROW == 0` will evaluate true during preprocessing at least if the preprocessor implements the standard correctly. Some older preprocessors may not have conformed to standard and this logic may have thus appeared to work.
   
   It certainly does not work on GCC7 or Clang 9..

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services