pawengine/log.h

15 lines
513 B
C
Raw Normal View History

2025-02-09 18:48:25 +01:00
#ifndef INCLUDE_WAYLANDCLIENT_LOG_H_
#define INCLUDE_WAYLANDCLIENT_LOG_H_
#include <stdio.h>
#include <stdlib.h>
#define meow(fmt, ...) \
fprintf(stderr, "[%s:%d] " fmt "\n", __FILE__, __LINE__, ##__VA_ARGS__)
#define crash(fmt, ...) \
fprintf(stderr, "[%s:%d] " fmt "\n", __FILE__, __LINE__, ##__VA_ARGS__); \
*(int *)0 = 0;
void print_backtrace();
#endif // INCLUDE_WAYLANDCLIENT_LOG_H_