X-Git-Url: https://pd.if.org/git/?p=nbds;a=blobdiff_plain;f=include%2Fcommon.h;h=bf3d04ecc17a2960298f7916fd9b235f612a2cf1;hp=205ea3402a3a937d03d1977c5828ca7616ae1c4e;hb=025017478bb385da88a6b185849c8bcffeb2e2aa;hpb=9b3e566281f7e2ac0683205042796958bfd8939f diff --git a/include/common.h b/include/common.h index 205ea34..bf3d04e 100644 --- a/include/common.h +++ b/include/common.h @@ -36,6 +36,11 @@ #define IS_TAGGED(v) ((uint64_t)(v) & TAG) #define STRIP_TAG(v) ((uint64_t)(v) & ~TAG) +#define DOES_NOT_EXIST 0 +#define ERROR_INVALID_OPTION (-1) +#define ERROR_INVALID_ARGUMENT (-2) +#define ERROR_UNSUPPORTED_FEATURE (-3) + typedef unsigned long long uint64_t; typedef unsigned int uint32_t; typedef unsigned char uint8_t;