mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Predef std::pair to two-element std::tuple
This commit is contained in:
@@ -44,8 +44,6 @@ struct FileStackNode {
|
||||
: type(type_), data(data_) {}
|
||||
|
||||
void printBacktrace(uint32_t curLineNo) const;
|
||||
std::vector<std::pair<std::string, uint32_t>> backtrace(uint32_t curLineNo) const;
|
||||
std::string reptChain() const;
|
||||
};
|
||||
|
||||
struct MacroArgs;
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
#define RGBDS_GFX_PAL_PACKING_HPP
|
||||
|
||||
#include <stddef.h>
|
||||
#include <tuple>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
struct Palette;
|
||||
class ColorSet;
|
||||
|
||||
// Returns which palette each color set maps to, and how many palettes are necessary
|
||||
std::tuple<std::vector<size_t>, size_t> overloadAndRemove(std::vector<ColorSet> const &colorSets);
|
||||
std::pair<std::vector<size_t>, size_t> overloadAndRemove(std::vector<ColorSet> const &colorSets);
|
||||
|
||||
#endif // RGBDS_GFX_PAL_PACKING_HPP
|
||||
|
||||
@@ -32,7 +32,6 @@ struct FileStackNode {
|
||||
std::string const &name() const { return std::get<std::string>(data); }
|
||||
|
||||
void printBacktrace(uint32_t curLineNo) const;
|
||||
std::vector<std::pair<std::string, uint32_t>> backtrace(uint32_t curLineNo) const;
|
||||
};
|
||||
|
||||
#endif // RGBDS_LINK_FSTACK_HPP
|
||||
|
||||
Reference in New Issue
Block a user