OpenClonk
log-handle.h File Reference
#include <glib.h>
Include dependency graph for log-handle.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef typedefG_BEGIN_DECLS struct _C4MapgenHandle C4MapgenHandle
 

Functions

void c4_log_handle_clear ()
 
const char * c4_log_handle_get_first_log_message ()
 
unsigned int c4_log_handle_get_n_log_messages ()
 

Typedef Documentation

◆ C4MapgenHandle

typedef typedefG_BEGIN_DECLS struct _C4MapgenHandle C4MapgenHandle

Definition at line 21 of file log-handle.h.

Function Documentation

◆ c4_log_handle_clear()

void c4_log_handle_clear ( )

Definition at line 55 of file log-handle.cpp.

56 {
57  first_log.clear();
58  n_logs = 0;
59 }
std::string first_log
Definition: log-handle.cpp:21
unsigned int n_logs
Definition: log-handle.cpp:22

References first_log, and n_logs.

Referenced by c4_mapgen_handle_new(), and c4_mapgen_handle_new_script().

Here is the caller graph for this function:

◆ c4_log_handle_get_first_log_message()

const char* c4_log_handle_get_first_log_message ( )

Definition at line 61 of file log-handle.cpp.

62 {
63  if(first_log.empty()) return nullptr;
64  return first_log.c_str();
65 }

References first_log.

Referenced by c4_mapgen_handle_new(), and c4_mapgen_handle_new_script().

Here is the caller graph for this function:

◆ c4_log_handle_get_n_log_messages()

unsigned int c4_log_handle_get_n_log_messages ( )

Definition at line 67 of file log-handle.cpp.

68 {
69  return n_logs;
70 }

References n_logs.

Referenced by c4_mapgen_handle_new(), and c4_mapgen_handle_new_script().

Here is the caller graph for this function: