Fix missing field warnings for debugger structs

This commit is contained in:
Max Brunsfeld 2014-10-14 22:50:24 -07:00
parent b468458929
commit b5d022a70c
4 changed files with 25 additions and 4 deletions

18
src/runtime/debugger.h Normal file
View file

@ -0,0 +1,18 @@
#ifndef RUNTIME_DEBUGGER_H_
#define RUNTIME_DEBUGGER_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "tree_sitter/runtime.h"
static inline TSDebugger ts_debugger_null() {
return (TSDebugger) { .data = NULL, .debug_fn = NULL, .release_fn = NULL, };
}
#ifdef __cplusplus
}
#endif
#endif // RUNTIME_DEBUGGER_H_