Exemplo n.º 1
0
    public static bool CallScriptFunction(string funcname, xmlScriptObj scrObj, STACKVAL stack, object args, out object o)
    {
        o = null;
        ELEMENT funcElement;
        ELEMENT pgmElement;
        var     b = ELEMENT.FindFunction(stack, funcname, out funcElement, out pgmElement);

        if (!b)
        {
            b = ELEMENT.FindFunctionFromRoot(scrObj.m_rootElement, funcname, out funcElement, out pgmElement);
        }
        if (!b)
        {
            return(false);
        }
        o = xmlScriptFunc.ExecuteDEC_FUNC(funcElement, scrObj, stack, args);
        return(true);
    }