浏览代码

Fixed some errors in code position relative to __cplusplus directives

main
Ludovic 'Archivist' Lagouardette 2 年前
父节点
当前提交
b2cba34c45
共有 2 个文件被更改,包括 2 次插入4 次删除
  1. +1
    -2
      LibSnugLog/public_include/sl/register.h
  2. +1
    -2
      LibSnugLog/public_include/sl/transaction.h

+ 1
- 2
LibSnugLog/public_include/sl/register.h 查看文件

@ -11,19 +11,18 @@
#include "sl/strategies.h"
#ifdef __cplusplus
struct sl_buffer_strategy;
struct sl_sink_strategy;
struct sl_overflow_strategy;
struct sl_output_strategy;
#ifdef __cplusplus
namespace sl {
using buffer_strategy = sl_buffer_strategy;
using sink_strategy = sl_sink_strategy;
using overflow_strategy = sl_overflow_strategy;
using output_strategy = sl_output_strategy;
}
#else
typedef struct sl_buffer_strategy buffer_strategy;
typedef struct sl_sink_strategy sink_strategy;

+ 1
- 2
LibSnugLog/public_include/sl/transaction.h 查看文件

@ -13,11 +13,10 @@
#endif
#ifdef __cplusplus
struct sl_log_transaction;
struct sl_log_transaction_internals;
#ifdef __cplusplus
namespace sl {
using cstyle_log_transaction = sl_log_transaction;
using cstyle_log_transaction_internals = sl_log_transaction_internals;

正在加载...
取消
保存