summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-06-30 09:09:24 +0100
committerDamien George <damien.p.george@gmail.com>2014-06-30 09:09:24 +0100
commit4039a266793f8bb3af24482b3d08b2dcef51e268 (patch)
tree5f5f3c9b59d7cfc7ef42e812f060de4c00bb6fe8 /py
parentb601d9574ad03a18d3eb476d631f547c7ea28243 (diff)
parent89b38d96c9e1dc45d6648268db28aec6e4d1fd8e (diff)
downloadmicropython-4039a266793f8bb3af24482b3d08b2dcef51e268.tar.gz
micropython-4039a266793f8bb3af24482b3d08b2dcef51e268.zip
Merge pull request #710 from iabdalkader/assert
Fix assert_func warning/error
Diffstat (limited to 'py')
-rw-r--r--py/mpconfig.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 0dd84d1f81..3a9d342ea3 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -404,3 +404,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