From 41f69f76bb815091757288a7cea893801c830a67 Mon Sep 17 00:00:00 2001 From: arookas Date: Mon, 28 Dec 2015 10:36:31 -0500 Subject: [PATCH] Fixed: incorrect define name for variable packing. --- ssc/context.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ssc/context.cs b/ssc/context.cs index d3f8544..2a9ca76 100644 --- a/ssc/context.cs +++ b/ssc/context.cs @@ -148,7 +148,7 @@ namespace arookas { // storables public sunVariableSymbol DeclareVariable(sunIdentifier node) { -#if SSC_RESOLVEVAR_NEST +#if SSC_PACK_VARS if (Scopes.Top.GetIsDeclared(node.Value)) { throw new sunRedeclaredVariableException(node); } @@ -159,7 +159,7 @@ namespace arookas { #endif var symbol = Scopes.DeclareVariable(node.Value); if (Scopes.Top.Type == sunScopeType.Script) { // global-scope variables are added to the symbol table -#if SSC_RESOLVEVAR_NEST +#if SSC_PACK_VARS // only add the variable symbol if there isn't one with this index already if (!SymbolTable.Variables.Any(i => i.Index == symbol.Index)) { SymbolTable.Add(new sunVariableSymbol(String.Format("global{0}", symbol.Index), symbol.Display, symbol.Index)); @@ -171,7 +171,7 @@ namespace arookas { return symbol; } public sunConstantSymbol DeclareConstant(sunIdentifier node, sunExpression expression) { -#if SSC_RESOLVEVAR_NEST +#if SSC_PACK_VARS if (Scopes.Top.GetIsDeclared(node.Value)) { throw new sunRedeclaredVariableException(node); }