Make the debug logging functions consistent

They now all output the same format of:
[time since program start] msg
This commit is contained in:
Kovid Goyal
2024-04-08 12:53:55 +05:30
parent 208490f4e1
commit 8fc96c5bd7
23 changed files with 73 additions and 58 deletions

1
glfw/wl_platform.h vendored
View File

@@ -413,7 +413,6 @@ int _glfwWaylandIntegerWindowScale(_GLFWwindow*);
void animateCursorImage(id_type timer_id, void *data);
struct wl_cursor* _glfwLoadCursor(GLFWCursorShape, struct wl_cursor_theme*);
void destroy_data_offer(_GLFWWaylandDataOffer*);
#define debug(...) if (_glfw.hints.init.debugRendering) { fprintf(stderr, "[%.3f] ", monotonic_t_to_s_double(monotonic())); fprintf(stderr, __VA_ARGS__); }
typedef struct wayland_cursor_shape {
int which; const char *name;