Don't use preprocesser for special tree state values

This commit is contained in:
Max Brunsfeld 2015-12-22 14:37:29 -08:00
parent da1bc038e5
commit 7f1c5f7568
3 changed files with 12 additions and 8 deletions

View file

@ -9,8 +9,8 @@ extern "C" {
#include "tree_sitter/parser.h"
#include "runtime/length.h"
#define TSTREE_STATE_INDEPENDENT (unsigned short)(-1)
#define TSTREE_STATE_ERROR (TSTREE_STATE_INDEPENDENT - 1)
extern TSStateId TS_TREE_STATE_INDEPENDENT;
extern TSStateId TS_TREE_STATE_ERROR;
struct TSTree {
struct {