mirror of
https://github.com/pret/pokeemerald.git
synced 2026-09-27 12:26:51 -05:00
Merge branch '_pret/master' into _RHH/pr/master/pretSync20241015
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
#include "char_util.h"
|
||||
#include "utf8.h"
|
||||
#include "string_parser.h"
|
||||
#include "../../gflib/characters.h"
|
||||
#include "../../include/constants/characters.h"
|
||||
#include "io.h"
|
||||
|
||||
AsmFile::AsmFile(std::string filename, bool isStdin, bool doEnum) : m_filename(filename)
|
||||
@@ -524,6 +524,17 @@ bool AsmFile::ParseEnum()
|
||||
long enumCounter = 0;
|
||||
long symbolCount = 0;
|
||||
|
||||
if (m_buffer[m_pos] == ':') // : <type>
|
||||
{
|
||||
m_pos++;
|
||||
std::string underlyingType;
|
||||
do {
|
||||
currentHeaderLine += SkipWhitespaceAndEol();
|
||||
underlyingType = ReadIdentifier();
|
||||
} while (!underlyingType.empty());
|
||||
currentHeaderLine += SkipWhitespaceAndEol();
|
||||
}
|
||||
|
||||
if (m_buffer[m_pos] != '{') // assume assembly macro, otherwise assume enum and report errors accordingly
|
||||
{
|
||||
m_pos = fallbackPosition - 4;
|
||||
|
||||
Reference in New Issue
Block a user