protected override bool GenerateValueDeclaration(CodeContainerBase container, string variableName, string sourceName) { container.AddDeclaration(new VariableDeclaration( new VariableType(variableName + "_high", LwipDefs.Vt_U32, "*"), "(" + new VariableType(null, LwipDefs.Vt_U32, "*").ToString() + ")" + sourceName)); container.AddDeclaration(new VariableDeclaration( new VariableType(variableName + "_low", LwipDefs.Vt_U32, "*"), variableName + "_high + 1")); container.AddCode(String.Format("LWIP_UNUSED_ARG({0}_high);", variableName)); container.AddCode(String.Format("LWIP_UNUSED_ARG({0}_low);", variableName)); return false; }
protected override bool GenerateValueDeclaration(CodeContainerBase container, string variableName, string sourceName) { container.AddDeclaration(new VariableDeclaration( new VariableType(variableName, LwipDefs.Vt_S32, "*"), "(" + new VariableType(null, LwipDefs.Vt_S32, "*") + ")" + sourceName)); return true; }