py: Abstract no-return attribute for functions a bit.

This commit is contained in:
Paul Sokolovsky
2014-04-30 05:35:18 +03:00
parent b1ce37d32e
commit e908591baa
3 changed files with 7 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ const mp_obj_t mp_const_empty_bytes;
STATIC mp_obj_t mp_obj_new_str_iterator(mp_obj_t str);
STATIC mp_obj_t mp_obj_new_bytes_iterator(mp_obj_t str);
STATIC mp_obj_t str_new(const mp_obj_type_t *type, const byte* data, uint len);
STATIC void bad_implicit_conversion(mp_obj_t self_in) __attribute__((noreturn));
STATIC NORETURN void bad_implicit_conversion(mp_obj_t self_in);
/******************************************************************************/
/* str */