aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/chelper/pyhelper.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-06-05 21:25:37 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-06-20 09:26:10 -0400
commit189ebb4c7d5134296ce9e2bebe304a795b38ef89 (patch)
tree3b6c3249e9268b5bd0a87c50758e26146d867f0b /klippy/chelper/pyhelper.h
parentbedbfceafc39489dfcc6cf453b7d64df262455e5 (diff)
downloadkutter-189ebb4c7d5134296ce9e2bebe304a795b38ef89.tar.gz
kutter-189ebb4c7d5134296ce9e2bebe304a795b38ef89.tar.xz
kutter-189ebb4c7d5134296ce9e2bebe304a795b38ef89.zip
chelper: Add compiler.h header
Add the compiler.h header file to the chelper code - this adds a number of useful gcc definitions. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/chelper/pyhelper.h')
-rw-r--r--klippy/chelper/pyhelper.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/klippy/chelper/pyhelper.h b/klippy/chelper/pyhelper.h
index d564c78b..1042214b 100644
--- a/klippy/chelper/pyhelper.h
+++ b/klippy/chelper/pyhelper.h
@@ -1,9 +1,6 @@
#ifndef PYHELPER_H
#define PYHELPER_H
-#define likely(x) __builtin_expect(!!(x), 1)
-#define unlikely(x) __builtin_expect(!!(x), 0)
-
double get_monotonic(void);
struct timespec fill_time(double time);
void set_python_logging_callback(void (*func)(const char *));