File: clunk_assert.h

package info (click to toggle)
btanks 0.9.8083-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 43,616 kB
  • sloc: cpp: 46,425; ansic: 12,005; xml: 4,262; python: 313; sh: 13; makefile: 13
file content (11 lines) | stat: -rw-r--r-- 270 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
#ifndef CLUNK_STATIC_ASSERT_H__
#define CLUNK_STATIC_ASSERT_H__

#define CLUNK_JOIN(x, y) CLUNK_JOIN_AGAIN(x, y)
#define CLUNK_JOIN_AGAIN(x, y) x ## y

#define clunk_static_assert(e) \
typedef char CLUNK_JOIN(assertion_failed_at_line_, __LINE__) [(e) ? 1 : -1]

#endif