Commit e8ccb6ae authored by tqcq's avatar tqcq
Browse files

feat use discard

parent b0cd2d36
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2,7 +2,9 @@
#define SLED_LANG_ATTRIBUTES_H
#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))
#define SLED_THREAD_ANNOTATION_ATTRIBUTE__(x) __attribute__((x))
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
#ifndef SLED_STRINGS_BASE64_H
#define SLED_STRINGS_BASE64_H

#include "sled/nonstd/string_view.h"
#include "sled/status_or.h"
#include <string.h>
#include <string>