summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-12-19 23:45:50 -0800
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-12-19 23:45:50 -0800
commit28e250cda01038c91fb9b69206c6f61f24764469 (patch)
treedffa27bd9433c7822896046f2842f25f2bacc047 /includes
parentc740946b5871745e72444136fd229304c9658b41 (diff)
parent367ba1df2786888451328416a2db991fa8018083 (diff)
Merge branch 'master' of ssh+git://git.grumpycoder.net/pub/repo.git/Balau
Diffstat (limited to 'includes')
-rw-r--r--includes/Handle.h10
-rw-r--r--includes/Printer.h2
2 files changed, 10 insertions, 2 deletions
diff --git a/includes/Handle.h b/includes/Handle.h
index 941748e..29cdb08 100644
--- a/includes/Handle.h
+++ b/includes/Handle.h
@@ -72,7 +72,15 @@ class Handle {
Future<int16_t> readI16();
Future<int32_t> readI32();
Future<int64_t> readI64();
- Future<void> writeU8 (uint8_t);
+ Future<uint8_t> readBEU8();
+ Future<uint16_t> readBEU16();
+ Future<uint32_t> readBEU32();
+ Future<uint64_t> readBEU64();
+ Future<int8_t> readBEI8();
+ Future<int16_t> readBEI16();
+ Future<int32_t> readBEI32();
+ Future<int64_t> readBEI64();
+ Future<void> writeU8(uint8_t);
Future<void> writeU16(uint16_t);
Future<void> writeU32(uint32_t);
Future<void> writeU64(uint64_t);
diff --git a/includes/Printer.h b/includes/Printer.h
index d0eeab7..2717a84 100644
--- a/includes/Printer.h
+++ b/includes/Printer.h
@@ -65,7 +65,7 @@ class Printer {
static void print(const char * fmt, ...) printfwarning(1, 2) { va_list ap; va_start(ap, fmt); vprint(fmt, ap); va_end(ap); }
static void vprint(const char * fmt, va_list ap) printfwarning(1, 0) { getPrinter()->_print(fmt, ap); }
-#ifdef DEBUG
+#ifdef FULLDEBUG
static void elog(uint32_t engine, const char * fmt, ...) printfwarning(2, 3) { va_list ap; va_start(ap, fmt); getPrinter()->_log(M_ENGINE_DEBUG, fmt, ap); }
#else
static void elog(uint32_t engine, const char * fmt, ...) { }