Merge pull request #22 from kblaschke/use-pragma-once

Use "#pragma once" instead of include guards
This commit is contained in:
Kae 2024-02-26 13:57:22 +11:00 committed by GitHub
commit a1addf1ec2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
504 changed files with 525 additions and 2018 deletions

View File

@ -1,5 +1,4 @@
#ifndef STAR_APPLICATION_HPP
#define STAR_APPLICATION_HPP
#pragma once
#include "StarInputEvent.hpp"
@ -72,5 +71,3 @@ inline RendererPtr const& Application::renderer() const {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_APPLICATION_CONTROLLER_HPP
#define STAR_APPLICATION_CONTROLLER_HPP
#pragma once
#include "StarApplication.hpp"
#include "StarStatisticsService.hpp"
@ -73,5 +72,3 @@ public:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_DESKTOP_SERVICE_PC_STEAM_HPP
#define STAR_DESKTOP_SERVICE_PC_STEAM_HPP
#pragma once
#include "StarPlatformServices_pc.hpp"
@ -15,5 +14,3 @@ public:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_MAIN_APPLICATION_HPP
#define STAR_MAIN_APPLICATION_HPP
#pragma once
#include "StarApplication.hpp"
#include "StarApplicationController.hpp"
@ -30,5 +29,3 @@ namespace Star {
}
#endif
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_P2P_NETWORKING_SERVICE_PC_HPP
#define STAR_P2P_NETWORKING_SERVICE_PC_HPP
#pragma once
#include "StarPlatformServices_pc.hpp"
#include "StarAlgorithm.hpp"
@ -142,5 +141,3 @@ private:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_PLATFORM_SERVICES_PC_HPP
#define STAR_PLATFORM_SERVICES_PC_HPP
#pragma once
#include "StarThread.hpp"
#include "StarApplication.hpp"
@ -79,5 +78,3 @@ private:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_RENDERER_HPP
#define STAR_RENDERER_HPP
#pragma once
#include "StarVariant.hpp"
#include "StarImage.hpp"
@ -166,5 +165,3 @@ public:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_RENDERER_OPENGL_HPP
#define STAR_RENDERER_OPENGL_HPP
#pragma once
#include "StarTextureAtlas.hpp"
#include "StarRenderer.hpp"
@ -237,5 +236,3 @@ private:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_STATISTICS_SERVICE_PC_STEAM_HPP
#define STAR_STATISTICS_SERVICE_PC_STEAM_HPP
#pragma once
#include "StarPlatformServices_pc.hpp"
@ -37,5 +36,3 @@ private:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_TEXTURE_ATLAS_HPP
#define STAR_TEXTURE_ATLAS_HPP
#pragma once
#include "StarRect.hpp"
#include "StarImage.hpp"
@ -417,5 +416,3 @@ auto TextureAtlasSet<AtlasTextureHandle>::addTextureToAtlas(TextureAtlas* atlas,
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_USER_GENERATED_CONTENT_SERVICE_PC_STEAM_HPP
#define STAR_USER_GENERATED_CONTENT_SERVICE_PC_STEAM_HPP
#pragma once
#include "StarPlatformServices_pc.hpp"
@ -22,5 +21,3 @@ private:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_ANIMATED_PART_SET_HPP
#define STAR_ANIMATED_PART_SET_HPP
#pragma once
#include "StarOrderedMap.hpp"
#include "StarJson.hpp"
@ -159,5 +158,3 @@ private:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_ASSET_SOURCE_HPP
#define STAR_ASSET_SOURCE_HPP
#pragma once
#include "StarIODevice.hpp"
#include "StarJson.hpp"
@ -31,5 +30,3 @@ public:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_ASSETS_HPP
#define STAR_ASSETS_HPP
#pragma once
#include "StarJson.hpp"
#include "StarOrderedMap.hpp"
@ -326,5 +325,3 @@ private:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_BLOCKS_ALONG_LINE_HPP
#define STAR_BLOCKS_ALONG_LINE_HPP
#pragma once
#include "StarVector.hpp"
@ -104,5 +103,3 @@ bool forBlocksAlongLine(Vector<Scalar, 2> origin, Vector<Scalar, 2> const& dxdy,
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_CELLULAR_LIGHT_ARRAY_HPP
#define STAR_CELLULAR_LIGHT_ARRAY_HPP
#pragma once
#include "StarList.hpp"
#include "StarVector.hpp"
@ -586,5 +585,3 @@ float CellularLightArray<LightTraits>::lineAttenuation(Vec2F const& start, Vec2F
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_CELLULAR_LIGHTING_HPP
#define STAR_CELLULAR_LIGHTING_HPP
#pragma once
#include "StarEither.hpp"
#include "StarRect.hpp"
@ -94,5 +93,3 @@ inline void CellularLightingCalculator::setCellIndex(size_t cellIndex, Vec3F con
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_CELLULAR_LIQUID_HPP
#define STAR_CELLULAR_LIQUID_HPP
#pragma once
#include "StarVariant.hpp"
#include "StarRect.hpp"
@ -654,5 +653,3 @@ void LiquidCellEngine<LiquidId>::transferLevel(
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_CONFIGURATION_HPP
#define STAR_CONFIGURATION_HPP
#pragma once
#include "StarJson.hpp"
#include "StarThread.hpp"
@ -36,5 +35,3 @@ private:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_DIRECTORY_ASSET_SOURCE_HPP
#define STAR_DIRECTORY_ASSET_SOURCE_HPP
#pragma once
#include "StarAssetSource.hpp"
#include "StarString.hpp"
@ -37,5 +36,3 @@ private:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_MIXER_HPP
#define STAR_MIXER_HPP
#pragma once
#include "StarAudio.hpp"
#include "StarThread.hpp"
@ -169,5 +168,3 @@ private:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_PACKED_ASSET_SOURCE_HPP
#define STAR_PACKED_ASSET_SOURCE_HPP
#pragma once
#include "StarOrderedMap.hpp"
#include "StarFile.hpp"
@ -41,5 +40,3 @@ private:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_VERSION_HPP
#define STAR_VERSION_HPP
#pragma once
#include "StarConfig.hpp"
@ -12,5 +11,3 @@ extern char const* const StarArchitectureString;
typedef uint32_t VersionNumber;
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_VERSION_OPTION_PARSER_HPP
#define STAR_VERSION_OPTION_PARSER_HPP
#pragma once
#include "StarOptionParser.hpp"
#include "StarVersion.hpp"
@ -23,5 +22,3 @@ public:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_WORLD_GEOMETRY_HPP
#define STAR_WORLD_GEOMETRY_HPP
#pragma once
#include "StarPoly.hpp"
@ -259,5 +258,3 @@ inline Vec2F WorldGeometry::nearestTo(Vec2F const& source, Vec2F const& target)
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_CLIENT_APPLICATION_HPP
#define STAR_CLIENT_APPLICATION_HPP
#pragma once
#include "StarUniverseServer.hpp"
#include "StarUniverseClient.hpp"
@ -120,5 +119,3 @@ private:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_A_STAR_HPP
#define STAR_A_STAR_HPP
#pragma once
#include <queue>
@ -272,5 +271,3 @@ namespace AStar {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_ALGORITHM_HPP
#define STAR_ALGORITHM_HPP
#pragma once
#include "StarException.hpp"
@ -654,5 +653,3 @@ template <typename T>
struct FunctionTraits<T const&&> : public FunctionTraits<T> {};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_ARRAY_H
#define STAR_ARRAY_H
#pragma once
#include <array>
@ -250,5 +249,3 @@ size_t hash<Array<DataT, SizeT>>::operator()(Array<DataT, SizeT> const& a) const
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_ASSET_PATH_HPP
#define STAR_ASSET_PATH_HPP
#pragma once
#include "StarDirectives.hpp"
#include "StarHash.hpp"
@ -78,5 +77,3 @@ struct hash<AssetPath> {
}
template <> struct fmt::formatter<Star::AssetPath> : ostream_formatter {};
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_ATOMIC_SHARED_PTR_HPP
#define STAR_ATOMIC_SHARED_PTR_HPP
#pragma once
#include "StarThread.hpp"
@ -117,5 +116,3 @@ AtomicSharedPtr<T>& AtomicSharedPtr<T>::operator=(SharedPtr p) {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_AUDIO_HPP
#define STAR_AUDIO_HPP
#pragma once
#include "StarIODevice.hpp"
@ -91,5 +90,3 @@ private:
};
}
#endif

View File

@ -1,5 +1,5 @@
#ifndef STAR_B_TREE_HPP
#define STAR_B_TREE_HPP
#pragma once
#include "StarList.hpp"
#include "StarMaybe.hpp"
@ -933,5 +933,3 @@ size_t BTreeMixin<Base>::indexFind(Index const& index, Key const& key) {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_BTREE_DATABASE_HPP
#define STAR_BTREE_DATABASE_HPP
#pragma once
#include "StarSet.hpp"
#include "StarBTree.hpp"
@ -340,5 +339,3 @@ public:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_BI_MAP_HPP
#define STAR_BI_MAP_HPP
#pragma once
#include "StarString.hpp"
@ -415,5 +414,3 @@ bool BiMap<LeftT, RightT, LeftMapT, RightMapT>::operator==(BiMap const& m) const
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_BLOCK_ALLOCATOR_HPP
#define STAR_BLOCK_ALLOCATOR_HPP
#pragma once
#include <array>
#include <vector>
@ -264,5 +263,3 @@ typename BlockAllocator<T, BlockSize>::Data* BlockAllocator<T, BlockSize>::getAl
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_BUFFER_HPP
#define STAR_BUFFER_HPP
#pragma once
#include "StarIODevice.hpp"
#include "StarString.hpp"
@ -118,5 +117,3 @@ private:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_BYTE_ARRAY_H
#define STAR_BYTE_ARRAY_H
#pragma once
#include "StarHash.hpp"
#include "StarException.hpp"
@ -257,5 +256,3 @@ inline size_t hash<ByteArray>::operator()(ByteArray const& b) const {
}
template <> struct fmt::formatter<Star::ByteArray> : ostream_formatter {};
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_BYTES_HPP
#define STAR_BYTES_HPP
#pragma once
#include "StarMemory.hpp"
@ -105,5 +104,3 @@ inline void fromByteOrder(ByteOrder order, void* dest, void const* src, size_t l
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_CASTING_HPP
#define STAR_CASTING_HPP
#pragma once
#include "StarException.hpp"
#include "StarFormat.hpp"
@ -89,5 +88,3 @@ weak_ptr<Type const> asWeak(shared_ptr<Type const> const& p) {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_COLOR_HPP
#define STAR_COLOR_HPP
#pragma once
#include "StarStringView.hpp"
#include "StarVector.hpp"
@ -171,5 +170,3 @@ inline Vec4B Color::v4fToByte(Vec4F const& f, bool doClamp) {
}
template <> struct fmt::formatter<Star::Color> : ostream_formatter {};
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_COMPRESSION_HPP
#define STAR_COMPRESSION_HPP
#pragma once
#include "StarIODevice.hpp"
#include "StarString.hpp"
@ -55,5 +54,3 @@ private:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_CONFIG_HPP
#define STAR_CONFIG_HPP
#pragma once
#include "StarPch.hpp"
@ -75,25 +74,23 @@ typedef int64_t StreamOffset;
#define STAR_CLASS(ClassName) \
class ClassName; \
typedef std::shared_ptr<ClassName> ClassName##Ptr; \
typedef std::shared_ptr<const ClassName> ClassName##ConstPtr; \
typedef std::weak_ptr<ClassName> ClassName##WeakPtr; \
typedef std::weak_ptr<const ClassName> ClassName##ConstWeakPtr; \
typedef std::unique_ptr<ClassName> ClassName##UPtr; \
typedef std::unique_ptr<const ClassName> ClassName##ConstUPtr
using ClassName##Ptr = std::shared_ptr<ClassName>; \
using ClassName##ConstPtr = std::shared_ptr<const ClassName>; \
using ClassName##WeakPtr = std::weak_ptr<ClassName>; \
using ClassName##ConstWeakPtr = std::weak_ptr<const ClassName>; \
using ClassName##UPtr = std::unique_ptr<ClassName>; \
using ClassName##ConstUPtr = std::unique_ptr<const ClassName>
#define STAR_STRUCT(StructName) \
struct StructName; \
typedef std::shared_ptr<StructName> StructName##Ptr; \
typedef std::shared_ptr<const StructName> StructName##ConstPtr; \
typedef std::weak_ptr<StructName> StructName##WeakPtr; \
typedef std::weak_ptr<const StructName> StructName##ConstWeakPtr; \
typedef std::unique_ptr<StructName> StructName##UPtr; \
typedef std::unique_ptr<const StructName> StructName##ConstUPtr
using StructName##Ptr = std::shared_ptr<StructName>; \
using StructName##ConstPtr = std::shared_ptr<const StructName>; \
using StructName##WeakPtr = std::weak_ptr<StructName>; \
using StructName##ConstWeakPtr = std::weak_ptr<const StructName>; \
using StructName##UPtr = std::unique_ptr<StructName>; \
using StructName##ConstUPtr = std::unique_ptr<const StructName>
#define STAR_QUOTE(name) #name
#define STAR_STR(macro) STAR_QUOTE(macro)
}
#endif

View File

@ -1,5 +1,5 @@
#ifndef STAR_CURVE_25519_HPP
#define STAR_CURVE_25519_HPP
#pragma once
#include "StarEncode.hpp"
#include "StarByteArray.hpp"
#include "StarArray.hpp"
@ -21,5 +21,3 @@ Signature sign(void* data, size_t len);
bool verify(uint8_t const* signature, uint8_t const* publicKey, void* data, size_t len);
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_DATA_STREAM_HPP
#define STAR_DATA_STREAM_HPP
#pragma once
#include "StarString.hpp"
@ -389,5 +388,3 @@ void DataStream::readMapContainer(Container& container) {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_DATA_STREAM_BUFFER_HPP
#define STAR_DATA_STREAM_BUFFER_HPP
#pragma once
#include "StarBuffer.hpp"
#include "StarDataStream.hpp"
@ -248,5 +247,3 @@ T DataStreamBuffer::deserializeMapContainer(ByteArray data, ReadFunction readFun
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_DATA_STREAM_EXTRA_HPP
#define STAR_DATA_STREAM_EXTRA_HPP
#pragma once
#include "StarDataStream.hpp"
#include "StarMultiArray.hpp"
@ -389,5 +388,3 @@ DataStream& operator<<(DataStream& ds, tuple<T...> const& t) {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_DIRECTIVES_HPP
#define STAR_DIRECTIVES_HPP
#pragma once
#include "StarImageProcessing.hpp"
#include "StarHash.hpp"
@ -122,5 +121,3 @@ struct hash<DirectivesGroup> {
typedef DirectivesGroup ImageDirectives;
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_PLATFORM_HPP
#define STAR_PLATFORM_HPP
#pragma once
#include "StarString.hpp"
@ -34,5 +33,3 @@ inline DynamicLibUPtr DynamicLib::loadLibraryBase(String const& baseName) {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_EITHER_HPP
#define STAR_EITHER_HPP
#pragma once
#include "StarVariant.hpp"
@ -239,5 +238,3 @@ Right* Either<Left, Right>::rightPtr() {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_ENCODE_HPP
#define STAR_ENCODE_HPP
#pragma once
#include "StarString.hpp"
#include "StarByteArray.hpp"
@ -23,5 +22,3 @@ String base64Encode(ByteArray const& data);
ByteArray base64Decode(String const& encodedData);
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_EXCEPTION_HPP
#define STAR_EXCEPTION_HPP
#pragma once
#include "StarMemory.hpp"
#include "StarOutputProxy.hpp"
@ -103,5 +102,3 @@ StarException StarException::format(fmt::format_string<Args...> fmt, Args const&
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_FILE_HPP
#define STAR_FILE_HPP
#pragma once
#include "StarIODevice.hpp"
#include "StarString.hpp"
@ -146,5 +145,3 @@ private:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_FLAT_HASH_MAP_HPP
#define STAR_FLAT_HASH_MAP_HPP
#pragma once
#include <type_traits>
@ -541,5 +540,3 @@ bool FlatHashMap<Key, Mapped, Hash, Equals, Allocator>::operator!=(FlatHashMap c
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_FLAT_HASH_SET_HPP
#define STAR_FLAT_HASH_SET_HPP
#pragma once
#include "StarFlatHashTable.hpp"
#include "StarHash.hpp"
@ -493,5 +492,3 @@ bool FlatHashSet<Key, Hash, Equals, Allocator>::operator!=(FlatHashSet const& rh
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_FLAT_HASH_TABLE_HPP
#define STAR_FLAT_HASH_TABLE_HPP
#pragma once
#include <vector>
@ -553,5 +552,3 @@ void FlatHashTable<Value, Key, GetKey, Hash, Equals, Allocator>::checkCapacity(s
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_FONT_HPP
#define STAR_FONT_HPP
#pragma once
#include "StarString.hpp"
#include "StarImage.hpp"
@ -47,5 +46,3 @@ private:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_FORMAT_HPP
#define STAR_FORMAT_HPP
#pragma once
#include "StarMemory.hpp"
#include "StarException.hpp"
@ -46,5 +45,3 @@ inline std::string toString(Type const& t) {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_JSON_COMMENTS_HPP
#define STAR_JSON_COMMENTS_HPP
#pragma once
#include <list>
@ -131,5 +130,3 @@ std::ostream& operator<<(std::ostream& os, FormattedJson const& json);
}
template <> struct fmt::formatter<Star::FormattedJson> : ostream_formatter {};
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_HASH_HPP
#define STAR_HASH_HPP
#pragma once
#include "StarBytes.hpp"
@ -96,5 +95,3 @@ size_t hashOf(T1 const& t1, T2 const& t2, TL const&... rest) {
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_HOST_ADDRESS_HPP
#define STAR_HOST_ADDRESS_HPP
#pragma once
#include "StarString.hpp"
#include "StarEither.hpp"
@ -88,5 +87,3 @@ struct hash<HostAddressWithPort> {
template <> struct fmt::formatter<Star::HostAddress> : ostream_formatter {};
template <> struct fmt::formatter<Star::HostAddressWithPort> : ostream_formatter {};
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_IO_DEVICE_H
#define STAR_IO_DEVICE_H
#pragma once
#include "StarByteArray.hpp"
#include "StarString.hpp"
@ -129,5 +128,3 @@ inline bool IODevice::isWritable() const {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_ID_MAP_HPP
#define STAR_ID_MAP_HPP
#pragma once
#include "StarMap.hpp"
#include "StarMathCommon.hpp"
@ -147,5 +146,3 @@ DataStream& operator<<(DataStream& ds, IdMapWrapper<BaseMap> const& map) {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_IMAGE_HPP
#define STAR_IMAGE_HPP
#pragma once
#include "StarString.hpp"
#include "StarVector.hpp"
@ -309,5 +308,3 @@ void Image::forEachPixel(CallbackType&& callback) {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_IMAGE_PROCESSING_HPP
#define STAR_IMAGE_PROCESSING_HPP
#pragma once
#include "StarList.hpp"
#include "StarRect.hpp"
@ -164,5 +163,3 @@ void processImageOperation(ImageOperation const& operation, Image& input, ImageR
Image processImageOperations(List<ImageOperation> const& operations, Image input, ImageReferenceCallback refCallback = {});
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_INPUT_EVENT_HPP
#define STAR_INPUT_EVENT_HPP
#pragma once
#include "StarString.hpp"
#include "StarBiMap.hpp"
@ -308,5 +307,3 @@ inline KeyMod& operator&=(KeyMod& a, KeyMod b) {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_INTERPOLATE_BASE
#define STAR_INTERPOLATE_BASE
#pragma once
#include "StarMathCommon.hpp"
#include "StarArray.hpp"
@ -450,5 +449,3 @@ typename YContainer::value_type parametricInterpolate4(XContainer const& xvals,
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_ITERATOR_H
#define STAR_ITERATOR_H
#pragma once
#include <algorithm>
@ -433,5 +432,3 @@ SMutableMapIterator<Container> makeSMutableMapIterator(Container& c) {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_JSON_HPP
#define STAR_JSON_HPP
#pragma once
#include "StarDataStream.hpp"
#include "StarVariant.hpp"
@ -360,5 +359,3 @@ Json jsonMergeQueryDef(String const& key, Json def, Json const& first, T const&.
template <> struct fmt::formatter<Star::Json> : ostream_formatter {};
template <> struct fmt::formatter<Star::JsonObject> : ostream_formatter {};
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_JSON_BUILDER_HPP
#define STAR_JSON_BUILDER_HPP
#pragma once
#include "StarJsonParser.hpp"
#include "StarJson.hpp"
@ -100,5 +99,3 @@ void outputUtf32Json(Jsonlike const& val, OutputIterator out, int pretty, bool s
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_JSON_EXTRA_HPP
#define STAR_JSON_EXTRA_HPP
#pragma once
#include "StarJson.hpp"
#include "StarPoly.hpp"
@ -383,5 +382,3 @@ Polygon<Float> fixInsideOutPoly(Polygon<Float> p) {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_JSON_PARSER_HPP
#define STAR_JSON_PARSER_HPP
#pragma once
#include <vector>
@ -730,5 +729,3 @@ private:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_JSON_PATCH_HPP
#define STAR_JSON_PATCH_HPP
#pragma once
#include "StarJson.hpp"
@ -37,5 +36,3 @@ namespace JsonPatching {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_JSON_PATH_HPP
#define STAR_JSON_PATH_HPP
#pragma once
#include "StarLexicalCast.hpp"
#include "StarJson.hpp"
@ -328,5 +327,3 @@ namespace JsonPath {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_JSON_RPC_HPP
#define STAR_JSON_RPC_HPP
#pragma once
#include "StarJson.hpp"
#include "StarByteArray.hpp"
@ -50,5 +49,3 @@ private:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_LEXICAL_CAST_HPP
#define STAR_LEXICAL_CAST_HPP
#pragma once
#include "StarFormat.hpp"
#include "StarString.hpp"
@ -43,5 +42,3 @@ Type lexicalCast(StringView s, std::ios_base::fmtflags flags = std::ios_base::bo
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_LINE_HPP
#define STAR_LINE_HPP
#pragma once
#include "StarMatrix3.hpp"
@ -288,5 +287,3 @@ struct hash<Line<T, N>> {
template <typename T, size_t N>
struct fmt::formatter<Star::Line<T, N>> : ostream_formatter {};
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_LIST_HPP
#define STAR_LIST_HPP
#pragma once
#include <vector>
#include <deque>
@ -1137,5 +1136,3 @@ typename ListEnumerateTypes<Container>::Result enumerate(Container&& container)
template <typename BaseList>
struct fmt::formatter<Star::ListMixin<BaseList>> : ostream_formatter {};
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_LISTENER_HPP
#define STAR_LISTENER_HPP
#pragma once
#include "StarThread.hpp"
@ -63,5 +62,3 @@ inline void TrackerListener::trigger() {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_LOCK_FILE_HPP
#define STAR_LOCK_FILE_HPP
#pragma once
#include "StarMaybe.hpp"
#include "StarString.hpp"
@ -38,5 +37,3 @@ private:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_LOGGING_HPP
#define STAR_LOGGING_HPP
#pragma once
#include "StarThread.hpp"
#include "StarSet.hpp"
@ -197,5 +196,3 @@ void LogMap::set(String const& key, T const& t) {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_LRU_CACHE_HPP
#define STAR_LRU_CACHE_HPP
#pragma once
#include "StarOrderedMap.hpp"
#include "StarBlockAllocator.hpp"
@ -145,5 +144,3 @@ void LruCacheBase<OrderedMapType>::clear() {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_LUA_HPP
#define STAR_LUA_HPP
#pragma once
#include <typeindex>
#include <type_traits>
@ -2224,5 +2223,3 @@ size_t LuaEngine::pushArguments(lua_State* state, Args const&... args) {
}
template <> struct fmt::formatter<Star::LuaValue> : ostream_formatter {};
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_LUA_CONVERTERS_HPP
#define STAR_LUA_CONVERTERS_HPP
#pragma once
#include "StarRect.hpp"
#include "StarVector.hpp"
@ -284,5 +283,3 @@ struct LuaConverter<LuaCallbacks> {
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_MAP_HPP
#define STAR_MAP_HPP
#pragma once
#include <map>
#include <unordered_map>
@ -317,5 +316,3 @@ std::ostream& operator<<(std::ostream& os, MapMixin<BaseMap> const& m) {
template <typename BaseMap>
struct fmt::formatter<Star::MapMixin<BaseMap>> : ostream_formatter {};
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_MATH_COMMON_HPP
#define STAR_MATH_COMMON_HPP
#pragma once
#include <type_traits>
#include <limits>
@ -324,5 +323,3 @@ Integer cycleIncrement(Integer val, Integer min, Integer max) {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_MATRIX3_HPP
#define STAR_MATRIX3_HPP
#pragma once
#include "StarVector.hpp"
@ -455,5 +454,3 @@ std::ostream& operator<<(std::ostream& os, Matrix3<T> m) {
template <typename T>
struct fmt::formatter<Star::Matrix3<T>> : ostream_formatter {};
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_MAYBE_HPP
#define STAR_MAYBE_HPP
#pragma once
#include "StarException.hpp"
#include "StarHash.hpp"
@ -399,5 +398,3 @@ size_t hash<Maybe<T>>::operator()(Maybe<T> const& m) const {
template <typename T>
struct fmt::formatter<Star::Maybe<T>> : ostream_formatter {};
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_MEMORY_HPP
#define STAR_MEMORY_HPP
#pragma once
#include <new>
@ -16,5 +15,3 @@ void free(void* ptr);
void free(void* ptr, size_t size);
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_MULTI_ARRAY_HPP
#define STAR_MULTI_ARRAY_HPP
#pragma once
#include "StarArray.hpp"
#include "StarList.hpp"
@ -509,5 +508,3 @@ std::ostream& operator<<(std::ostream& os, MultiArray<Element, Rank> const& arra
template <typename Element, size_t Rank>
struct fmt::formatter<Star::MultiArray<Element, Rank>> : ostream_formatter {};
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_MULTI_ARRAY_INTERPOLATOR_HPP
#define STAR_MULTI_ARRAY_INTERPOLATOR_HPP
#pragma once
#include "StarMultiArray.hpp"
#include "StarInterpolation.hpp"
@ -535,5 +534,3 @@ struct MultiArrayInterpolator4<MultiArray<ElementT, 3>, PositionT> {
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_MULTI_TABLE_HPP
#define STAR_MULTI_TABLE_HPP
#pragma once
#include "StarMultiArrayInterpolator.hpp"
@ -165,5 +164,3 @@ typedef MultiTable<float, float, 4> MultiTable4F;
typedef MultiTable<double, double, 4> MultiTable4D;
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_NET_ELEMENT_HPP
#define STAR_NET_ELEMENT_HPP
#pragma once
#include "StarDataStream.hpp"
@ -58,5 +57,3 @@ public:
};
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_NET_STEP_STATES_HPP
#define STAR_NET_STEP_STATES_HPP
#pragma once
#include <type_traits>
@ -327,5 +326,3 @@ void NetElementData<T>::writeData(DataStream& ds, T const& v) const {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_NET_ELEMENT_CONTAINERS_HPP
#define STAR_NET_ELEMENT_CONTAINERS_HPP
#pragma once
#include "StarMap.hpp"
#include "StarDataStreamExtra.hpp"
@ -448,5 +447,3 @@ void NetElementMapWrapper<BaseMap>::applyChange(ElementChange change) {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_NET_ELEMENT_DYNAMIC_GROUP_HPP
#define STAR_NET_ELEMENT_DYNAMIC_GROUP_HPP
#pragma once
#include "StarNetElement.hpp"
#include "StarIdMap.hpp"
@ -313,5 +312,3 @@ void NetElementDynamicGroup<Element>::readyElement(ElementPtr const& element) {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_NET_ELEMENT_FLOAT_FIELDS_HPP
#define STAR_NET_ELEMENT_FLOAT_FIELDS_HPP
#pragma once
#include <type_traits>
@ -242,5 +241,3 @@ T NetElementFloating<T>::interpolate() const {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_NET_ELEMENT_GROUP_HPP
#define STAR_NET_ELEMENT_GROUP_HPP
#pragma once
#include "StarSet.hpp"
#include "StarNetElement.hpp"
@ -62,5 +61,3 @@ inline float NetElementGroup::netExtrapolationHint() const {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_NET_ELEMENT_SIGNAL_HPP
#define STAR_NET_ELEMENT_SIGNAL_HPP
#pragma once
#include "StarNetElement.hpp"
@ -141,5 +140,3 @@ List<Signal> NetElementSignal<Signal>::receive() {
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef STAR_NET_ELEMENT_SYNC_GROUP_HPP
#define STAR_NET_ELEMENT_SYNC_GROUP_HPP
#pragma once
#include "StarNetElementGroup.hpp"
@ -50,5 +49,3 @@ private:
};
}
#endif

Some files were not shown because too many files have changed in this diff Show More