diff libmlk-ui/ui/debug.h @ 298:196264679079

misc: remove usage of bool
author David Demelier <markand@malikania.fr>
date Wed, 10 Mar 2021 18:49:08 +0100
parents 08ab73b32832
children d01e83210ca2
line wrap: on
line diff
--- a/libmlk-ui/ui/debug.h	Wed Mar 10 18:49:00 2021 +0100
+++ b/libmlk-ui/ui/debug.h	Wed Mar 10 18:49:08 2021 +0100
@@ -19,87 +19,34 @@
 #ifndef MOLKO_UI_DEBUG_H
 #define MOLKO_UI_DEBUG_H
 
-/**
- * \file debug.h
- * \brief Debugging interfaces.
- *
- * This module provides functions to draw debugging information within the game
- * window. It is mostly used for information only when state of the game is
- * better inspected via direct window information rather than writing in the
- * console.
- *
- * Predefined core states may print debugging information if
- * debug_options.enabled variable is set to true. However, you need to specify
- * the font to use in order to work.
- *
- * Each call to \ref debugf or \ref vdebugf automatically adjust
- * next coordinate for rendering the text. As such, user may simply print
- * several lines of text without having to deal with that manually.
- */
-
-#include <stdbool.h>
 #include <stdarg.h>
 
 #include <core/core.h>
 #include <core/font.h>
 
-/**
- * Maximum content length per report.
- */
 #define DEBUG_LINE_MAX 1024
 
 struct theme;
 
-/**
- * \brief Debugging options.
- *
- * Fill this structure with appropriate values to change debugging behavior
- * in core API.
- */
 struct debug_options {
-	bool enable;                    /*!< (+) Enable core API debugging. */
+	int enable;
 };
 
-/**
- * \brief Debug context.
- *
- * Use this structure each time you need to print one or more messages.
- */
 struct debug_report {
-	const struct theme *theme;      /*!< (+&?) Theme to use. */
-	unsigned int count;             /*!< (-) Number of messages already printed. */
+	const struct theme *theme;
+	unsigned int count;
 };
 
 CORE_BEGIN_DECLS
 
-/**
- * Global debugging options.
- */
 extern struct debug_options debug_options;
 
-/**
- * Print debugging information into the screen.
- *
- * \pre report != NULL
- * \pre fmt != NULL
- * \param report the reporting context
- * \param fmt the printf(3) format string
- * \note The message length must not exceed DEBUG_LINE_MAX, otherwise its
- *       result is truncated.
- */
 void
-debugf(struct debug_report *report, const char *fmt, ...);
+debugf(struct debug_report *, const char *, ...);
+
 
-/**
- * Similar to \ref debugf with a va_list arguments pointer.
- *
- * \pre fmt != NULL
- * \param report the reporting context
- * \param fmt the printf(3) format string
- * \param ap the argument list
- */
 void
-vdebugf(struct debug_report *report, const char *fmt, va_list ap);
+vdebugf(struct debug_report *, const char *, va_list);
 
 CORE_END_DECLS