Exemplo n.º 1
0
VS_API(int) vseval_evaluateScript(VSScript **handle, const char *script, const char *errorFilename) {
    if (*handle == NULL) {
        *handle = new VSScript();
        (*handle)->pyenvdict = NULL;
        (*handle)->errstr = NULL;
		(*handle)->id = scriptId++;
    }
    return vpy_evaluateScript(*handle, script, errorFilename);
}
Exemplo n.º 2
0
VS_API(int) vsscript_evaluateScript(VSScript **handle, const char *script, const char *scriptFilename, int flags) {
    if (*handle == nullptr) {
        *handle = new(std::nothrow)VSScript();
        if (*handle) {
            (*handle)->pyenvdict = nullptr;
            (*handle)->errstr = nullptr;
            (*handle)->id = ++scriptId;
        } else {
            return 1;
        }
    }
    return vpy_evaluateScript(*handle, script, scriptFilename ? scriptFilename : "<string>", flags);
}