kiba-engine
Functions
console.h File Reference

Interface to access platform specific console printing functionality. More...

#include <kiba/defines.h>
Include dependency graph for console.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void platform_console_write (const char *msg, u8 color)
 Write message to the platforms console. More...
 
void platform_console_write_error (const char *msg, u8 color)
 Write message to the platforms error console. More...
 
void platform_print_stacktrace (void)
 Print the the call stack of the caller. More...
 

Detailed Description

Interface to access platform specific console printing functionality.

Definition in file console.h.

Function Documentation

◆ platform_console_write()

void platform_console_write ( const char *  msg,
u8  color 
)

Write message to the platforms console.

Parameters
msgmessage to be printed
colorlog_level of the message indicating the desired color

Definition at line 25 of file console.c.

◆ platform_console_write_error()

void platform_console_write_error ( const char *  msg,
u8  color 
)

Write message to the platforms error console.

Parameters
msgmessage to be printed
colorlog_level of the message indicating the desired color

Definition at line 30 of file console.c.

◆ platform_print_stacktrace()

void platform_print_stacktrace ( void  )

Print the the call stack of the caller.

Definition at line 35 of file console.c.