Hi,

On 05/09/15 20:24, Oleg Hahm wrote:
>> DEVELHELP should not be used to change the semantics of things.
> 
> Can you elaborate?
The system should behave the same whether develhelp is used or not.

If you do something like

#ifdef DEVELHELP
if(input_not_correct)
{
        print("error message");
        return ERROR;
}
#endif

then the application will work correctly (e.g., handle the error) with
DEVELHELP and probably crash without. But DEVELHELP is supposed to
expose bugs, not work around them. So in this example, the "return
ERROR" should be omitted.

Kaspar
_______________________________________________
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel

Reply via email to