λ61
Loading...
Searching...
No Matches
AbstractScriptDebugger.hpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2025 Tetex7
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18#pragma once
19
20#ifndef L61_ABSTRACT_SCRIPT_DEBUGGER_HPP
21#define L61_ABSTRACT_SCRIPT_DEBUGGER_HPP
22#include "sol/sol.hpp"
23//#include "l61/defs.hpp"
24
25namespace l61
26{
27 namespace ScriptEngine
28 {
30 }
31 struct l61_stat;
32 namespace meta
33 {
34 template<class T>
35 concept l61CompatibleScriptDebugger = std::is_base_of_v<ScriptEngine::AbstractScriptDebugger, T>;
36 }
37
38 namespace ScriptEngine
39 {
40 class ScriptEnvironment;
41
43 {
44 private:
45 ScriptEnvironment* const scriptCtx;
47 protected:
50 sol::state& getScriptLuaState();
51 l61_abstract_call(void preRun(lua_State* L, lua_Debug* D));
52
54 public:
55 l61_abstract_call(void run(lua_State* L, lua_Debug* D));
56
59
61 };
62 }
63}
64
65#endif
#define l61_abstract_class
Denotes that the class is abstract with most functions being implemented leaving a few functions to b...
Definition PseudoKeywords.hpp:63
#define l61_abstract_destructor(type)
Create a standard virtual destructor for your abstract class.
Definition PseudoKeywords.hpp:75
#define l61_abstract_call(sig)
denotes that the method call is not implemented
Definition PseudoKeywords.hpp:68
Definition ScriptEnvironment.hpp:39
Definition AbstractScriptDebugger.hpp:35
Definition defs.hpp:171
AbstractScriptDebugger & operator=(const AbstractScriptDebugger &)=delete
l61_stat & getL61Ctx()
Definition AbstractScriptDebugger.cpp:33
l61_abstract_class AbstractScriptDebugger
Definition defs.hpp:172
sol::state & getScriptLuaState()
Definition AbstractScriptDebugger.cpp:38
ScriptEnvironment * getScriptCtx()
l61_stat & lstat
Definition AbstractScriptDebugger.hpp:46
Definition Object.hpp:34
Definition defs.hpp:159