aboutsummaryrefslogtreecommitdiff
path: root/picohttp_debug.h
diff options
context:
space:
mode:
authorWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2013-09-13 21:17:08 +0200
committerWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2013-09-13 21:17:08 +0200
commit764e9f839f2b93a7f95b156a09c2c5f2067b95d3 (patch)
treea8a7c17a34bda999cf6be3100c8acdfe33142db9 /picohttp_debug.h
parent71a023a46a7ab8636ff3e5aa6ae42b181a6ac69d (diff)
downloadlitheweb-764e9f839f2b93a7f95b156a09c2c5f2067b95d3.tar.gz
litheweb-764e9f839f2b93a7f95b156a09c2c5f2067b95d3.tar.bz2
custom base64 decoder
Diffstat (limited to 'picohttp_debug.h')
-rw-r--r--picohttp_debug.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/picohttp_debug.h b/picohttp_debug.h
new file mode 100644
index 0000000..9454f49
--- /dev/null
+++ b/picohttp_debug.h
@@ -0,0 +1,27 @@
+#pragma once
+#ifndef PICOHTTP_DEBUG_H
+#define PICOHTTP_DEBUG_H
+
+#if 1
+#include <util/debug_utils.h>
+#endif
+
+#ifndef debug_printf
+#ifdef HOST_DEBUG
+#include <stdio.h>
+#define debug_printf(...) do{fprintf(stderr, __VA_ARGS__);}while(0)
+#else
+#define debug_printf(...) do{}while(0)
+#endif
+#endif
+
+#ifndef debug_putc
+#ifdef HOST_DEBUG
+#include <stdio.h>
+#define debug_putc(x) do{fputc(x, stderr);}while(0)
+#else
+#define debug_putc(x) do{}while(0)
+#endif
+#endif
+
+#endif/*PICOHTTP_DEBUG_H*/