mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-15 01:46:29 -04:00
12 lines
205 B
C
12 lines
205 B
C
#ifndef TREE_SITTER_ASSERT_H_
|
|
#define TREE_SITTER_ASSERT_H_
|
|
|
|
#ifdef NDEBUG
|
|
#define ts_assert(e) ((void)(e))
|
|
#else
|
|
#include <assert.h>
|
|
#define ts_assert(e) assert(e)
|
|
#endif
|
|
|
|
#endif // TREE_SITTER_ASSERT_H_
|