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
26#define gf_log_function(engine, fmt, ...) gf_log(engine, "%6d %24s: " fmt "\n", __LINE__, __FUNCTION_NAME__, __VA_ARGS__)
27
34GF_EXPORT void gf_log(gf_engine_t* engine, const char* fmt, ...);
35
36#endif
Type definitions related to core.
void gf_log(gf_engine_t *engine, const char *fmt,...)
Output log.
Definition gf_log.c:18
#define GF_EXPORT
Macro for platform-dependent symbol export/import.
Definition gf_macro.h:190
Required headers before anything.
Engine instance.
Definition core.h:46