Haka
debugger.h
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 
5 #ifndef DEBUGGER_H
6 #define DEBUGGER_H
7 
8 #include <haka/types.h>
9 #include <haka/luadebug/user.h>
10 
11 #include "complete.h"
12 
13 struct lua_State;
14 struct luadebug_debugger;
15 
16 struct luadebug_debugger *luadebug_debugger_create(struct lua_State *L, bool break_immediatly);
17 void luadebug_debugger_cleanup(struct luadebug_debugger *session);
18 
19 void lua_pushpdebugger(struct lua_State *L, struct luadebug_debugger *dbg);
20 struct luadebug_debugger *lua_getpdebugger(struct lua_State *L, int index);
21 
22 #endif /* DEBUGGER_H */