summaryrefslogtreecommitdiff
path: root/euler/include/cassert
blob: 415790d8ebc5a52ba8d796333d79605f4146553d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#pragma once

namespace euler {

  [[noreturn]] inline void assert_failed() {
    //TODO: log error and abort
    while (1) ;
  }

}

#define assert(cond) ((cond) ? (void)0 : ::euler::assert_failed());