mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 18:52:07 +00:00
Allow inlining of two simple RPN functions
This commit is contained in:
@@ -72,7 +72,7 @@ static uint8_t *reserveSpace(struct Expression *expr, uint32_t size)
|
||||
/*
|
||||
* Init the RPN expression
|
||||
*/
|
||||
void rpn_Init(struct Expression *expr)
|
||||
static void rpn_Init(struct Expression *expr)
|
||||
{
|
||||
expr->reason = NULL;
|
||||
expr->isKnown = true;
|
||||
@@ -93,22 +93,6 @@ void rpn_Free(struct Expression *expr)
|
||||
rpn_Init(expr);
|
||||
}
|
||||
|
||||
/*
|
||||
* Determine if the current expression is known at assembly time
|
||||
*/
|
||||
bool rpn_isKnown(const struct Expression *expr)
|
||||
{
|
||||
return expr->isKnown;
|
||||
}
|
||||
|
||||
/*
|
||||
* Determine if the current expression is a symbol suitable for const diffing
|
||||
*/
|
||||
bool rpn_isSymbol(const struct Expression *expr)
|
||||
{
|
||||
return expr->isSymbol;
|
||||
}
|
||||
|
||||
/*
|
||||
* Add symbols, constants and operators to expression
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user