#ifndef _ERROR_H_ #define _ERROR_H_ // This macro is used to silence warnings on string concatenation operations that may fail. // e.g., combining two element of PATH_MAX into a string buffer of AKGL_STRING_MAX_LENGTH. // We have to draw a line in the sand somewhere or we will just let our buffers grow forever // to keep the compiler happy. #define DISABLE_GCC_WARNING_FORMAT_TRUNCATION \ _Pragma("GCC diagnostic push") \ _Pragma("GCC diagnostic ignored \"-Wformat-truncation\"") #define RESTORE_GCC_WARNINGS \ _Pragma("GCC diagnostic pop") #define AKGL_ERR_SDL AKERR_LAST_ERRNO_VALUE + 1 #endif // _ERROR_H_