aboutsummaryrefslogtreecommitdiffstats
path: root/qmljs_engine.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2012-11-19 00:00:50 +0100
committerErik Verbruggen <erik.verbruggen@digia.com>2012-11-20 09:40:14 +0100
commit79753b8fe5f3df79a9a4208056ac05281b5f97d0 (patch)
tree04c083834b8a8346d2ac51881dee981f538bb317 /qmljs_engine.h
parent95e8de83dccc12b58e065ac7f0c54de25f580bf2 (diff)
return results directly instead of using the context
The result variable in the context is not really required, as we can return results directly in the return value register. Change-Id: I12554c228500aa24625ef82e31fd7f72989a71bb Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'qmljs_engine.h')
-rw-r--r--qmljs_engine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qmljs_engine.h b/qmljs_engine.h
index 4ecc386d00..d22cd85c50 100644
--- a/qmljs_engine.h
+++ b/qmljs_engine.h
@@ -143,7 +143,7 @@ struct ExecutionEngine
String *identifier(const QString &s);
- FunctionObject *newNativeFunction(ExecutionContext *scope, void (*code)(ExecutionContext *));
+ FunctionObject *newNativeFunction(ExecutionContext *scope, Value (*code)(ExecutionContext *));
FunctionObject *newScriptFunction(ExecutionContext *scope, IR::Function *function);
Object *newObject();