Fix missing field warnings for debugger structs
This commit is contained in:
parent
b468458929
commit
b5d022a70c
4 changed files with 25 additions and 4 deletions
18
src/runtime/debugger.h
Normal file
18
src/runtime/debugger.h
Normal 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_
|
||||
Loading…
Add table
Add a link
Reference in a new issue