You successfully added the first variable (id = 0)
An error occurred
At the moment, any variable id from 0 to (MAX_UINT32_NUM) is valid, so I don't have a space value to define as "error-ous"
One potential solution is to change the variable id type to int32_t and only let it be positive. Then I can change this functions return type and check for minus 1 as the new error case.
It will return zero if
At the moment, any variable id from 0 to (MAX_UINT32_NUM) is valid, so I don't have a space value to define as "error-ous"
One potential solution is to change the variable id type to
int32_t
and only let it be positive. Then I can change this functions return type and check for minus 1 as the new error case.