aboutsummaryrefslogtreecommitdiff
path: root/include/wld/wld-private.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/wld/wld-private.h')
-rw-r--r--include/wld/wld-private.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/include/wld/wld-private.h b/include/wld/wld-private.h
index e812b11..dd25984 100644
--- a/include/wld/wld-private.h
+++ b/include/wld/wld-private.h
@@ -34,12 +34,8 @@
#include FT_BITMAP_H
#define ARRAY_LENGTH(array) (sizeof (array) / sizeof (array)[0])
-#if ENABLE_DEBUG
-# define DEBUG(format, ...) \
- fprintf(stderr, "# %s: " format, __func__, ## __VA_ARGS__)
-#else
-# define DEBUG(format, ...)
-#endif
+
+#define DEBUG(...) if(getenv("WTERM_DEBUG")) { fprintf(stderr, "%s:%d ", __FILE__, __LINE__); fprintf(stderr, __VA_ARGS__); }
#define EXPORT __attribute__((visibility("default")))
#define CONTAINER_OF(ptr, type, member) \
@@ -53,7 +49,8 @@
struct wld_font_context
{
- FT_Library library;
+ FT_Library library;
+ FcConfig * config;
};
struct glyph