Fix travis build

Don't use C99 struct literal syntax in debugger header,
because it's included by the tests, which are c++
This commit is contained in:
Max Brunsfeld 2014-10-16 12:36:08 -07:00
parent 22ee68e1a9
commit ad9aee30e0

View file

@ -8,7 +8,8 @@ extern "C" {
#include "tree_sitter/runtime.h"
static inline TSDebugger ts_debugger_null() {
return (TSDebugger) { .data = NULL, .debug_fn = NULL, .release_fn = NULL, };
TSDebugger debugger = { 0, 0, 0 };
return debugger;
}
#ifdef __cplusplus