mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
chore(log): remove redundant Common.hpp
This commit is contained in:
parent
50d7d5aab6
commit
3c97ee3083
3 changed files with 19 additions and 23 deletions
|
|
@ -1,16 +0,0 @@
|
|||
#ifndef STORM_COMMON_HPP
|
||||
#define STORM_COMMON_HPP
|
||||
|
||||
|
||||
#define DECLARE_STRICT_HANDLE(name) \
|
||||
typedef struct name##__ { \
|
||||
int unused; \
|
||||
}* name
|
||||
|
||||
#define DECLARE_DERIVED_HANDLE(name, base) \
|
||||
typedef struct name##__ : public base##__ { \
|
||||
int unused; \
|
||||
}* name
|
||||
|
||||
|
||||
#endif
|
||||
|
|
@ -7,4 +7,18 @@
|
|||
typedef struct name##__* name
|
||||
#endif
|
||||
|
||||
#if !defined(DECLARE_STRICT_HANDLE)
|
||||
#define DECLARE_STRICT_HANDLE(name) \
|
||||
typedef struct name##__ { \
|
||||
int unused; \
|
||||
}* name
|
||||
#endif
|
||||
|
||||
#if !defined(DECLARE_DERIVED_HANDLE)
|
||||
#define DECLARE_DERIVED_HANDLE(name, base) \
|
||||
typedef struct name##__ : public base##__ { \
|
||||
int unused; \
|
||||
}* name
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -5,16 +5,14 @@
|
|||
#include <cstdarg>
|
||||
#include <cstdint>
|
||||
|
||||
#include "storm/Common.hpp"
|
||||
#include "storm/Handle.hpp"
|
||||
#include "storm/String.hpp"
|
||||
|
||||
|
||||
enum : uint32_t {
|
||||
SLOG_FLAG_DEFAULT = 0, // Create or open log file with first SLogWrite() call
|
||||
SLOG_FLAG_OPEN_FILE = 1, // Create or open log file with SLogCreate()
|
||||
SLOG_FLAG_NO_FILE = 2, // Don't use log file (use OutputDebugString or console only)
|
||||
SLOG_FLAG_APPEND = 4 // Don't truncate existing log file
|
||||
};
|
||||
#define SLOG_FLAG_DEFAULT 0 // Create or open log file with first SLogWrite() call
|
||||
#define SLOG_FLAG_OPEN_FILE 1 // Create or open log file with SLogCreate()
|
||||
#define SLOG_FLAG_NO_FILE 2 // Don't use log file (use OutputDebugString or console only)
|
||||
#define SLOG_FLAG_APPEND 4 // Don't truncate existing log file
|
||||
|
||||
DECLARE_STRICT_HANDLE(HSLOG);
|
||||
DECLARE_STRICT_HANDLE(HLOCKEDLOG);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue