Initial commit
This commit is contained in:
18
src/ASVariableFormatter.hpp
Normal file
18
src/ASVariableFormatter.hpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef ANGELSCRIPTDEBUGGER_ASVARIABLEFORMATTER_HPP
|
||||
#define ANGELSCRIPTDEBUGGER_ASVARIABLEFORMATTER_HPP
|
||||
#include <angelscript.h>
|
||||
#include "../extern/json.hpp"
|
||||
#include "AngelscriptDebugger.hpp"
|
||||
#include "DebugAdapterProtocol/Types.hpp"
|
||||
|
||||
class ASVariableFormatter {
|
||||
public:
|
||||
static nlohmann::json GetAsJsonValue(asIScriptEngine* engine, int, void*, int32_t depth = 0);
|
||||
static DebugAdapterProtocol::Variable GetAsDAPVariable(asIScriptEngine* engine, asIScriptContext* ctx,
|
||||
AngelscriptDebugger* debugger, const std::string& name, int,
|
||||
void*);
|
||||
static void GetChildDAPVariables(std::vector<DebugAdapterProtocol::Variable>&, asIScriptEngine* engine,
|
||||
asIScriptContext* ctx, AngelscriptDebugger* debugger, int, void*);
|
||||
};
|
||||
|
||||
#endif // ANGELSCRIPTDEBUGGER_ASVARIABLEFORMATTER_HPP
|
||||
Reference in New Issue
Block a user