From 5c8db4854109100790977b4d84296e5eb29ffe9e Mon Sep 17 00:00:00 2001 From: mux Date: Sat, 21 Jun 2014 17:24:55 +0200 Subject: Fix asser_func warning/error * Add while(1) to assert_func to avoid func returns warning * Define a weak attr in mpconfig.h --- py/mpconfig.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'py/mpconfig.h') diff --git a/py/mpconfig.h b/py/mpconfig.h index 4a3288a3d..0aefd1b35 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -381,3 +381,8 @@ typedef double mp_float_t; #ifndef NORETURN #define NORETURN __attribute__((noreturn)) #endif + +// Modifier for weak functions +#ifndef MP_WEAK +#define MP_WEAK __attribute__((weak)) +#endif -- cgit v1.2.3