mirror of
https://github.com/Ed94/metadesk.git
synced 2026-08-05 07:08:45 +00:00
adding arena (p8) - done
This commit is contained in:
@@ -160,13 +160,13 @@ EvaluateScope(NamespaceNode *ns, MD_Node *code)
|
||||
//- rjf: declaration
|
||||
if(first->next == opl && first->string.size != 0 && !MD_NodeIsNil(first->first_child))
|
||||
{
|
||||
MD_C_Expr *expr = MD_C_ParseAsExpr(first->first_child, first->last_child);
|
||||
MD_C_Expr *expr = MD_C_ParseAsExpr(arena, first->first_child, first->last_child);
|
||||
InsertValueToNamespace(&local_namespace, first->string, EvaluateExpr(&local_namespace, expr));
|
||||
}
|
||||
//- rjf: expr
|
||||
else
|
||||
{
|
||||
MD_C_Expr *expr = MD_C_ParseAsExpr(first, opl);
|
||||
MD_C_Expr *expr = MD_C_ParseAsExpr(arena, first, opl);
|
||||
if(!MD_C_ExprIsNil(expr))
|
||||
{
|
||||
result = EvaluateExpr(&local_namespace, expr);
|
||||
|
||||
Reference in New Issue
Block a user