Files
Gryphn/src/core/debugger/gryphn_debugger.c
2025-05-24 15:13:16 -04:00

16 lines
566 B
C

#include "gryphn_debugger.h"
#include "core/gryphn_platform_functions.h"
#include "stdio.h"
gnReturnCode gnCreateDebugger(gnDebugger* debugger, gnInstance* instance, const struct gnDebuggerInfo_t info) {
if (instance->debugger != NULL)
return GN_DEBUGGER_EXISTS;
debugger->info = info;
debugger->instance = instance;
instance->debugger = debugger;
return instance->functions->_gnCreateDebugger(debugger, instance, info);
}
void gnDestroyDebugger(gnDebugger* debugger) {
debugger->instance->functions->_gnDestroyDebugger(debugger);
}