mirror of
https://github.com/open-goal/jak-project
synced 2026-08-20 06:16:35 -04:00
temp
This commit is contained in:
@@ -67,6 +67,18 @@ std::string FieldReverseLookupOutput::Token::print() const {
|
||||
}
|
||||
}
|
||||
|
||||
std::string FieldReverseLookupOutput::print() const {
|
||||
std::string result = fmt::format("[{}] {} ", result_type.print(), total_score);
|
||||
if (addr_of) {
|
||||
result += '&';
|
||||
}
|
||||
for (const auto& tok : tokens) {
|
||||
result += tok.print();
|
||||
result += ' ';
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
void try_reverse_lookup(const FieldReverseLookupInput& input,
|
||||
|
||||
@@ -98,6 +98,7 @@ struct FieldReverseLookupOutput {
|
||||
FieldReverseLookupOutput() = default;
|
||||
FieldReverseLookupOutput(bool addr, TypeSpec type, std::vector<Token> tok)
|
||||
: success(true), addr_of(addr), result_type(std::move(type)), tokens(std::move(tok)) {}
|
||||
std::string print() const;
|
||||
|
||||
bool success = false;
|
||||
bool addr_of = false; // do we take the address of this result?
|
||||
|
||||
@@ -1,14 +1,6 @@
|
||||
#include <utility>
|
||||
#include "common/util/assert.h"
|
||||
|
||||
/*
|
||||
template<typename T, typename... Args>
|
||||
std::unique_ptr<T> make_unique(Args&&... args)
|
||||
{
|
||||
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
|
||||
}
|
||||
*/
|
||||
|
||||
/*!
|
||||
* The CopyOnWrite class acts like a value, but internally uses references to avoid copying
|
||||
* when it is possible to avoid it.
|
||||
|
||||
Reference in New Issue
Block a user