mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 20:44:38 +03:00
24 lines
531 B
C++
24 lines
531 B
C++
#pragma once
|
|
|
|
class QByteArray;
|
|
class QString;
|
|
|
|
namespace NekoRay::qjs {
|
|
class QJS {
|
|
public:
|
|
QJS();
|
|
explicit QJS(const QByteArray &jsSource);
|
|
~QJS();
|
|
|
|
QString Eval(const QByteArray &jsSource) const;
|
|
QString Eval(const QString &jsSource) const;
|
|
QString EvalFile(const QString &jsPath) const;
|
|
QString EvalFunction(const QString &funcName, const QString &arg) const;
|
|
|
|
private:
|
|
void *neko_ctx;
|
|
};
|
|
|
|
QByteArray ReadHookJS();
|
|
} // namespace NekoRay::qjs
|