GE-115 Emulator
An Emulator of the General Electrics GE-115 computer
Functions | Variables
log.c File Reference
#include "log.h"
#include <stdarg.h>
#include <stdio.h>

Go to the source code of this file.

Functions

static const char * log_type_name (ge_log_type type)
 
void ge_log_set_active_types (ge_log_type types)
 Set active log types. More...
 
void ge_log (ge_log_type type, const char *format,...)
 Log message. More...
 
uint8_t ge_log_enabled (ge_log_type type)
 Check if a log type is enabled. More...
 

Variables

static ge_log_type active_log_types = -1
 

Function Documentation

◆ ge_log()

void ge_log ( ge_log_type  type,
const char *  format,
  ... 
)

Log message.

Specifies which set of logging messages should be displayed.

Parameters
typeThe type of the message
formatThe printf-style format for the log message

Definition at line 31 of file log.c.

◆ ge_log_enabled()

uint8_t ge_log_enabled ( ge_log_type  type)

Check if a log type is enabled.

Parameters
typeThe type to check
Returns
true if the logtype mask is enabled

Definition at line 46 of file log.c.

◆ ge_log_set_active_types()

void ge_log_set_active_types ( ge_log_type  types)

Set active log types.

Specifies which set of logging messages should be displayed.

Parameters
typesA set of log types

Definition at line 26 of file log.c.

◆ log_type_name()

static const char* log_type_name ( ge_log_type  type)
static

Definition at line 8 of file log.c.

Variable Documentation

◆ active_log_types

ge_log_type active_log_types = -1
static

Definition at line 6 of file log.c.