commit | 5c8db4854109100790977b4d84296e5eb29ffe9e | [log] [tgz] |
---|---|---|
author | mux <freelancer.c@gmail.com> | Sat Jun 21 17:24:55 2014 +0200 |
committer | mux <freelancer.c@gmail.com> | Sat Jun 21 17:24:55 2014 +0200 |
tree | 3aa383ffbf36d8b789fc10d0059f4c0c29c1b6a4 | |
parent | 4c4b9d15ab94dfe31ec34559ab70bafc0ef11f02 [diff] [blame] |
Fix asser_func warning/error * Add while(1) to assert_func to avoid func returns warning * Define a weak attr in mpconfig.h
diff --git a/py/mpconfig.h b/py/mpconfig.h index 4a3288a..0aefd1b 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h
@@ -381,3 +381,8 @@ #ifndef NORETURN #define NORETURN __attribute__((noreturn)) #endif + +// Modifier for weak functions +#ifndef MP_WEAK +#define MP_WEAK __attribute__((weak)) +#endif