Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
820c23d3
Kaydet (Commit)
820c23d3
authored
Mar 11, 2012
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool to bool in SAL_LOG if possible
otherwise clang warns about things like 1 && 1
üst
df6097ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
log.h
sal/inc/sal/detail/log.h
+17
-5
No files found.
sal/inc/sal/detail/log.h
Dosyayı görüntüle @
820c23d3
...
@@ -58,6 +58,18 @@
...
@@ -58,6 +58,18 @@
extern
"C"
{
extern
"C"
{
#endif
#endif
/*
Clang warns about 'sal_True && sal_True' (those being integers and not booleans)
when it sees preprocessed source (-save-temps or using icecream)
*/
#if defined __cplusplus
#define SAL_LOG_TRUE true
#define SAL_LOG_FALSE false
#else
#define SAL_LOG_TRUE sal_True
#define SAL_LOG_FALSE sal_False
#endif
enum
sal_detail_LogLevel
{
enum
sal_detail_LogLevel
{
SAL_DETAIL_LOG_LEVEL_INFO
,
SAL_DETAIL_LOG_LEVEL_WARN
,
SAL_DETAIL_LOG_LEVEL_INFO
,
SAL_DETAIL_LOG_LEVEL_WARN
,
SAL_DETAIL_MAKE_FIXED_SIZE
=
SAL_MAX_ENUM
SAL_DETAIL_MAKE_FIXED_SIZE
=
SAL_MAX_ENUM
...
@@ -81,17 +93,17 @@ SAL_DLLPUBLIC void SAL_CALL sal_detail_logFormat(
...
@@ -81,17 +93,17 @@ SAL_DLLPUBLIC void SAL_CALL sal_detail_logFormat(
if (condition) { \
if (condition) { \
sal_detail_logFormat((level), (area), (where), __VA_ARGS__); \
sal_detail_logFormat((level), (area), (where), __VA_ARGS__); \
} \
} \
} while (
sal_False
)
} while (
SAL_LOG_FALSE
)
#if defined SAL_LOG_INFO
#if defined SAL_LOG_INFO
#define SAL_DETAIL_ENABLE_LOG_INFO
sal_True
#define SAL_DETAIL_ENABLE_LOG_INFO
SAL_LOG_TRUE
#else
#else
#define SAL_DETAIL_ENABLE_LOG_INFO
sal_False
#define SAL_DETAIL_ENABLE_LOG_INFO
SAL_LOG_FALSE
#endif
#endif
#if defined SAL_LOG_WARN
#if defined SAL_LOG_WARN
#define SAL_DETAIL_ENABLE_LOG_WARN
sal_True
#define SAL_DETAIL_ENABLE_LOG_WARN
SAL_LOG_TRUE
#else
#else
#define SAL_DETAIL_ENABLE_LOG_WARN
sal_False
#define SAL_DETAIL_ENABLE_LOG_WARN
SAL_LOG_FALSE
#endif
#endif
#define SAL_DETAIL_WHERE __FILE__ ":" SAL_STRINGIFY(__LINE__) ": "
#define SAL_DETAIL_WHERE __FILE__ ":" SAL_STRINGIFY(__LINE__) ": "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment