Nuked console
This commit is contained in:
40
src/debug/debug.c
Normal file
40
src/debug/debug.c
Normal file
@@ -0,0 +1,40 @@
|
||||
/**
|
||||
* Copyright (c) 2025 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#include "debug.h"
|
||||
|
||||
void debugPrint(const char_t *message, ...) {
|
||||
// char_t buffer[CONSOLE_LINE_MAX];
|
||||
|
||||
// va_list args;
|
||||
// va_start(args, message);
|
||||
// int32_t len = stringFormatVA(buffer, CONSOLE_LINE_MAX, message, args);
|
||||
// va_end(args);
|
||||
|
||||
// // Move all lines back
|
||||
// memoryMove(
|
||||
// CONSOLE.line[0],
|
||||
// CONSOLE.line[1],
|
||||
// (CONSOLE_HISTORY_MAX - 1) * CONSOLE_LINE_MAX
|
||||
// );
|
||||
|
||||
// // Copy the new line
|
||||
// memoryCopy(
|
||||
// CONSOLE.line[CONSOLE_HISTORY_MAX - 1],
|
||||
// buffer,
|
||||
// len + 1
|
||||
// );
|
||||
// printf("%s\n", buffer);
|
||||
|
||||
va_list args;
|
||||
va_start(args, message);
|
||||
vprintf(message, args);
|
||||
va_end(args);
|
||||
|
||||
// For the time being just use standard printing functions.
|
||||
printf(message, args);
|
||||
}
|
||||
Reference in New Issue
Block a user