Better HN
topnewbestaskshowjobs
Log inSign up

cransoon

36 karma · joined Mar 23, 2021 (5y ago) · 1 submissions

Submissions

comment 5y ago · link · parent

  /*
   * This returns a constant expressionn while determining if an argument is
   * a constant expression, most importantly without evaluating the argument.
   * Glory to Martin Uecker <Martin.Uecker@med.uni-goettingen.de>
 */
  #define __is_constexpr(x) \
          (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8)))