Skip to content

Commit

Permalink
Remove the 99999 macro arg limit (#1597)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 authored Jan 4, 2025
1 parent b13c0f2 commit d829fd2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/asm/macro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@
#include <string.h>
#include <string>

#include "helpers.hpp"

#include "asm/warning.hpp"

#define MAXMACROARGS 99999

std::shared_ptr<std::string> MacroArgs::getArg(uint32_t i) const {
uint32_t realIndex = i + shift - 1;

Expand Down Expand Up @@ -48,8 +44,6 @@ std::shared_ptr<std::string> MacroArgs::getAllArgs() const {
void MacroArgs::appendArg(std::shared_ptr<std::string> arg) {
if (arg->empty())
warning(WARNING_EMPTY_MACRO_ARG, "Empty macro argument\n");
if (args.size() == MAXMACROARGS)
error("A maximum of " EXPAND_AND_STR(MAXMACROARGS) " arguments is allowed\n");
args.push_back(arg);
}

Expand Down

0 comments on commit d829fd2

Please sign in to comment.