From 1874938c0d35990f95e494a7fef066bf97001d8f Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 29 Jun 2010 21:17:39 -0600 Subject: Move platform-specific stuff in libdimension into platform.c. --- libdimension/platform.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libdimension/platform.h') 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 #include +#include + +/* 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(); -- cgit v1.2.3