diff --git a/include/asm/symbol.h b/include/asm/symbol.h index 7cee9949..407730f3 100644 --- a/include/asm/symbol.h +++ b/include/asm/symbol.h @@ -75,6 +75,14 @@ static inline bool sym_IsExported(struct sSymbol const *sym) return sym->isExported; } +/* + * Get a string equate's value + */ +static inline char *sym_GetStringValue(struct sSymbol const *sym) +{ + return sym->pMacro; +} + int32_t sym_GetValue(struct sSymbol const *sym); uint32_t sym_CalcHash(const char *s); void sym_SetExportAll(bool set); diff --git a/src/asm/symbol.c b/src/asm/symbol.c index b018965f..ee2650f7 100644 --- a/src/asm/symbol.c +++ b/src/asm/symbol.c @@ -249,19 +249,6 @@ void sym_Purge(char const *tzName) } } -/* - * Get a string equate's value - */ -char *sym_GetStringValue(struct sSymbol const *sym) -{ - if (sym != NULL) - return sym->pMacro; - - yyerror("String symbol '%s' not defined", sym->tzName); - - return NULL; -} - /* * Return a constant symbols value */