瀏覽代碼

[Minor] Add noexcept qualifier

tags/3.3
Vsevolod Stakhov 2 年之前
父節點
當前提交
a2f6a34d23
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      config.h.in

+ 3
- 3
config.h.in 查看文件

@@ -389,9 +389,9 @@ extern uint64_t ottery_rand_uint64(void);

#ifdef __cplusplus
#define RSPAMD_CONSTRUCTOR(f) \
static void f(void); \
struct f##_t_ { f##_t_(void) { f(); } }; static f##_t_ f##_; \
static void f(void)
static void f(void) noexcept; \
struct f##_t_ { f##_t_(void) noexcept { f(); } }; static f##_t_ f##_; \
static void f(void) noexcept
#else
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
#define RSPAMD_CONSTRUCTOR(f) \

Loading…
取消
儲存