public void AddExternal(ExternalDeclaration decl) { if (externals.ContainsKey (decl.name)) { Error ("Duplicate EXTERNAL definition of '"+decl.name+"'", decl, false); } else { externals [decl.name] = decl; } }
public void AddExternal(ExternalDeclaration decl) { if (externals.ContainsKey(decl.name)) { Error("Duplicate EXTERNAL definition of '" + decl.name + "'", decl, false); } else { externals [decl.name] = decl; } }
void CheckExternalArgumentValidity(Story context) { string externalName = target.firstComponent; ExternalDeclaration external = null; var found = context.externals.TryGetValue(externalName, out external); System.Diagnostics.Debug.Assert(found, "external not found"); int externalArgCount = external.argumentNames.Count; int ownArgCount = 0; if (arguments != null) { ownArgCount = arguments.Count; } //if (ownArgCount != externalArgCount) { // Error ("incorrect number of arguments sent to external function '" + externalName + "'. Expected " + externalArgCount + " but got " + ownArgCount); //} }