jeanleflambeur 8712fd3ccf Update esp_err.h
Renamed the internal rc to __err_rc to avoid clashes with local variables.
This code would not do the expected thing with the original ESP_ERROR_CHECK macro:

esp_err_t my_func(esp_err_t x)
{
  assert(x == 23);
}

esp_err_t rc = 23; //some value that is important fo the user
ESP_ERROR_CHECK(my_func(rc));

The macro will expand to:
esp_err_t rc = (my_func(rc));

And the code will assert, as my_func will receive a random value - whatever is in the internal macro rc temp variable. This is due to the C weirdness of allowing this code:

int x = x; //x has a random value.
2017-11-03 16:45:28 +08:00
..
2017-11-03 16:45:28 +08:00
2017-11-02 15:53:17 +08:00
2017-11-02 15:24:21 +08:00
2017-10-18 14:19:19 +08:00
2017-10-18 14:19:19 +08:00
2017-10-13 18:27:53 +08:00
2016-08-17 23:08:22 +08:00
2017-11-02 15:24:21 +08:00
2017-04-11 15:45:54 +08:00
2017-10-18 14:19:16 +08:00
2017-10-18 14:19:18 +08:00
2017-10-18 14:19:18 +08:00
2017-09-13 16:55:30 +08:00
2017-09-13 16:55:30 +08:00