Fix asser_func warning/error

* Add while(1) to assert_func to avoid func returns warning
* Define a weak attr in mpconfig.h
Add NORETURN to __fatal_error
Merge pull request #710 from iabdalkader/assert

Fix assert_func warning/error