summaryrefslogtreecommitdiffstats
path: root/libdimension/platform.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-06-29 21:17:39 -0600
committerTavian Barnes <tavianator@gmail.com>2010-06-29 21:17:39 -0600
commit1874938c0d35990f95e494a7fef066bf97001d8f (patch)
treeb6c43254129237843d07f7cbf13572397e6973f6 /libdimension/platform.h
parenteb4691098767935c1ffd10f7da46796c11eefcfa (diff)
downloaddimension-1874938c0d35990f95e494a7fef066bf97001d8f.tar.xz
Move platform-specific stuff in libdimension into platform.c.
Diffstat (limited to 'libdimension/platform.h')
-rw-r--r--libdimension/platform.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libdimension/platform.h b/libdimension/platform.h
index bda83dd..a2bcd39 100644
--- a/libdimension/platform.h
+++ b/libdimension/platform.h
@@ -21,7 +21,18 @@
#ifndef DIMENSION_IMPL_UTILITIES_H
#define DIMENSION_IMPL_UTILITIES_H
+#include <stdbool.h>
#include <stddef.h>
+#include <stdio.h>
+
+/* Provide a stack trace if possible */
+void dmnsn_backtrace(FILE *file);
+
+/* Return whether this is the main execution thread, if we can tell */
+bool dmnsn_is_main_thread();
+
+/* Return true if we are little-endian */
+bool dmnsn_is_little_endian();
/* Return the number of CPUs available to dimension */
size_t dmnsn_ncpus();