GoldFish Engine
Quite simple and lightweight game engine
Loading...
Searching...
No Matches
gf_log.h
Go to the documentation of this file.
1
7#ifndef __GF_LOG_H__
8#define __GF_LOG_H__
9
10#include <gf_pre.h>
11#include <gf_macro.h>
12
13/* Type */
14
15/* Engine */
16#include <gf_type/core.h>
17
18/* Standard */
19#include <stdio.h>
20
26
33#define gf_log_function(engine, fmt, ...) gf_log(engine, "%6d %24s: " fmt "\n", __LINE__, __FUNCTION_NAME__, __VA_ARGS__)
34
41GF_EXPORT void gf_log(gf_engine_t* engine, const char* fmt, ...);
42
43#endif
Type definitions related to core.
FILE * gf_log_default
Default log output.
Definition gf_log.c:18
void gf_log(gf_engine_t *engine, const char *fmt,...)
Output log.
Definition gf_log.c:20
#define GF_EXPORT
Macro for platform-dependent symbol export/import.
Definition gf_macro.h:198
Required headers before anything.
Engine instance.
Definition core.h:46