Is it possible to add assert() as standard feature?

Is that possible to add assert() as standard feature?

1 Like

Let me ping someone that might be able to help, @rickkas7 or @ParticleD are you able to assist?

#define run_time_assert(x) if ((x) == 0) my_assert(__FILE__, __LINE__)

void my_assert(const char *file_name, uint32_t line)
{
        noInterrupts();
        {
                Serial.printf("assert failed %s %d\r\n",
                                file_name, line);
        }
        interrupts();
}