initial commit
This commit is contained in:
15
core/status.c
Normal file
15
core/status.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <blue/core/status.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#define ENUM_STR(s) \
|
||||
case s: \
|
||||
return #s;
|
||||
|
||||
const char *b_status_to_string(b_status status)
|
||||
{
|
||||
switch (status) {
|
||||
ENUM_STR(B_SUCCESS);
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user