GoldFish Engine
Quite simple and lightweight game engine
Loading...
Searching...
No Matches
gf_log.h File Reference

Logger. More...

#include <gf_pre.h>
#include <gf_macro.h>
#include <gf_type/core.h>

Go to the source code of this file.

Macros

#define gf_log_function(engine, fmt, ...)   gf_log(engine, "%6d %24s: " fmt "\n", __LINE__, __FUNCTION_NAME__, __VA_ARGS__)
 Output log with line number and function name.
 

Functions

void gf_log (gf_engine_t *engine, const char *fmt,...)
 Output log.
 

Detailed Description

Logger.

Definition in file gf_log.h.

Macro Definition Documentation

◆ gf_log_function

#define gf_log_function (   engine,
  fmt,
  ... 
)    gf_log(engine, "%6d %24s: " fmt "\n", __LINE__, __FUNCTION_NAME__, __VA_ARGS__)

Output log with line number and function name.

Parameters
engineEngine instance
fmtFormat string

Definition at line 26 of file gf_log.h.

Function Documentation

◆ gf_log()

void gf_log ( gf_engine_t engine,
const char *  fmt,
  ... 
)
extern

Output log.

Parameters
engineEngine instance
fmtFormat string

Definition at line 18 of file gf_log.c.