summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qtypes.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2022-12-06 08:04:02 -0800
committerThiago Macieira <thiago.macieira@intel.com>2023-01-11 22:23:20 -0800
commit313720fef09d321194fbd717fc04c14e793cd8b8 (patch)
tree485e6b4aa0a90a70851f413fbdcc360dc5acb3ed /src/corelib/global/qtypes.h
parent1558153360012bce03bc5899fb9b677c6fb30b55 (diff)
qglobal.h: centralize the __ASSEMBLER__ check
We can declare that headers like qtnoop.h and qtypes.h are C or C++ headers, not assembler ones so we don't need to have them individually check that whether they're being compiled in assembler mode. This removes the accidental leak of the qt_noop() declaration into assembler and makes it clean: $ cpp -P -D__ASSEMBLER__ -Iinclude include/QtCore/qglobal.h | grep -c . 0 (using grep because it prints four empty lines) Change-Id: I69ecc04064514f939896fffd172e3fd6b6adc892 Reviewed-by: Øystein Heskestad <oystein.heskestad@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/global/qtypes.h')
-rw-r--r--src/corelib/global/qtypes.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/corelib/global/qtypes.h b/src/corelib/global/qtypes.h
index f7757b4311..fa41f03c44 100644
--- a/src/corelib/global/qtypes.h
+++ b/src/corelib/global/qtypes.h
@@ -19,8 +19,6 @@
#pragma qt_sync_stop_processing
#endif
-#ifndef __ASSEMBLER__
-
/*
Useful type definitions for Qt
*/
@@ -158,6 +156,4 @@ using qsizetype = QIntegerForSizeof<std::size_t>::Signed;
QT_END_NAMESPACE
-#endif // __ASSEMBLER__
-
#endif // QTYPES_H