Ver código fonte

Fixed some errors in code position relative to __cplusplus directives

main
Ludovic 'Archivist' Lagouardette 2 anos atrás
pai
commit
b2cba34c45
2 arquivos alterados com 2 adições e 4 exclusões
  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 Ver arquivo

@ -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 Ver arquivo

@ -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;

Carregando…
Cancelar
Salvar