# | Line 44 | Line 44 | const char *sg_str_error(sg_error code) { | |
---|---|---|
44 | switch (code) { | |
45 | case SG_ERROR_NONE: | |
46 | return "no error"; | |
47 | + | case SG_ERROR_MALLOC_FAILED: |
48 | + | return "malloc failed - out of memory"; |
49 | } | |
50 | return "unknown error"; | |
51 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |