refactor(console input): changed name of console functions to include console

This commit is contained in:
Mineplay 2025-10-17 17:06:23 -05:00
parent 49f58a1c2b
commit 98129b3260
3 changed files with 6 additions and 6 deletions

View file

@ -24,8 +24,8 @@
#include "../Utils/Error.h"
IonyError iony_print(const char *text, long length);
IonyError iony_console_print(const char *text, long length);
IonyError iony_get_character(char *character);
IonyError iony_console_get_character(char *character);
#endif

View file

@ -30,7 +30,7 @@ static HANDLE iony_standard_console_in = 0;
#include "../../Include/Iony/Utils/System.h"
#endif
IonyError iony_print(const char *text, const long length) {
IonyError iony_console_print(const char *text, const long length) {
if (text == 0) {
return IONY_ERROR_INVALID_POINTER;
}
@ -54,7 +54,7 @@ IonyError iony_print(const char *text, const long length) {
return IONY_ERROR_NONE;
}
IonyError iony_get_character(char *character) {
IonyError iony_console_get_character(char *character) {
if (character == 0) {
return IONY_ERROR_INVALID_POINTER;
}

View file

@ -23,12 +23,12 @@
#include <Iony/Core/Console.h>
int main(void) {
if (iony_print("Hello, World!\n", 15) != IONY_ERROR_NONE) {
if (iony_console_print("Hello, World!\n", 15) != IONY_ERROR_NONE) {
return -1;
}
char character = ' ';
if (iony_get_character(&character) != IONY_ERROR_NONE) {
if (iony_console_get_character(&character) != IONY_ERROR_NONE) {
return -1;
}