feat use discard

This commit is contained in:
tqcq 2024-04-11 23:25:46 +08:00
parent b0cd2d363b
commit e8ccb6aebd
2 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,9 @@
#define SLED_LANG_ATTRIBUTES_H #define SLED_LANG_ATTRIBUTES_H
#pragma once #pragma once
#define SLED_DEPRECATED __attribute__((deprecated)) // #define SLED_DEPRECATED __attribute__((deprecated))
#define SLED_NODISCARD [[nodiscard]]
#define SLED_DEPRECATED [[deprecated]]
#if defined(__clang__) && (!defined(SWIG)) #if defined(__clang__) && (!defined(SWIG))
#define SLED_THREAD_ANNOTATION_ATTRIBUTE__(x) __attribute__((x)) #define SLED_THREAD_ANNOTATION_ATTRIBUTE__(x) __attribute__((x))

View File

@ -8,6 +8,7 @@
#ifndef SLED_STRINGS_BASE64_H #ifndef SLED_STRINGS_BASE64_H
#define SLED_STRINGS_BASE64_H #define SLED_STRINGS_BASE64_H
#include "sled/nonstd/string_view.h"
#include "sled/status_or.h" #include "sled/status_or.h"
#include <string.h> #include <string.h>
#include <string> #include <string>