mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Fix global print function's JSDoc
This commit is contained in:
parent
5caa21e5d9
commit
bbd16d7544
2 changed files with 7 additions and 6 deletions
|
@ -731,6 +731,13 @@ void ScriptEngine::init() {
|
|||
QScriptValue webSocketConstructorValue = newFunction(WebSocketClass::constructor);
|
||||
globalObject().setProperty("WebSocket", webSocketConstructorValue);
|
||||
|
||||
/**jsdoc
|
||||
* Prints a message to the program log and emits {@link Script.printedMessage}.
|
||||
* The message logged is the message values separated by spaces.
|
||||
* <p>Alternatively, you can use {@link Script.print} or one of the {@link console} API methods.</p>
|
||||
* @function print
|
||||
* @param {...*} [message] - The message values to print.
|
||||
*/
|
||||
globalObject().setProperty("print", newFunction(debugPrint));
|
||||
|
||||
QScriptValue audioEffectOptionsConstructorValue = newFunction(AudioEffectOptions::constructor);
|
||||
|
|
|
@ -504,12 +504,6 @@ public:
|
|||
* @function Script.print
|
||||
* @param {string} message - The message to print.
|
||||
*/
|
||||
/**jsdoc
|
||||
* Prints a message to the program log.
|
||||
* <p>This is an alias of {@link Script.print}.</p>
|
||||
* @function print
|
||||
* @param {string} message - The message to print.
|
||||
*/
|
||||
Q_INVOKABLE void print(const QString& message);
|
||||
|
||||
/**jsdoc
|
||||
|
|
Loading…
Reference in a new issue