diff options
author | Lars Knoll <lars.knoll@digia.com> | 2012-11-19 00:00:50 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@digia.com> | 2012-11-20 09:40:14 +0100 |
commit | 79753b8fe5f3df79a9a4208056ac05281b5f97d0 (patch) | |
tree | 04c083834b8a8346d2ac51881dee981f538bb317 /qmljs_runtime.h | |
parent | 95e8de83dccc12b58e065ac7f0c54de25f580bf2 (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_runtime.h')
-rw-r--r-- | qmljs_runtime.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qmljs_runtime.h b/qmljs_runtime.h index bc404e9bc0..4a1e3480b9 100644 --- a/qmljs_runtime.h +++ b/qmljs_runtime.h @@ -104,7 +104,7 @@ void __qmljs_builtin_throw(Value val, ExecutionContext *context); // constructors Value __qmljs_init_closure(IR::Function *clos, ExecutionContext *ctx); -Value __qmljs_init_native_function(void (*code)(ExecutionContext *), ExecutionContext *ctx); +Value __qmljs_init_native_function(Value (*code)(ExecutionContext *), ExecutionContext *ctx); Bool __qmljs_is_function(Value value); |