Replies: 1 comment
-
https://docs.rs/jlrs/latest/jlrs/call/trait.Call.html#tymethod.call
Op do 20 jul. 2023 21:52 schreef jeenou ***@***.***>:
… Hi,
is it possible to call a julia function that takes more than 3 parameters?
What that .call3 should be then if it's possible?
pub fn
*call3<'target, 'data, T: Target<'target>>( target: T, module: &str,
function: &str, data_1: Value<'*, 'data>,
data_2: Value<'
*, 'data>, data_3: Value<'*, 'data>
) -> JlrsResult<ValueResult<'target, 'data, T>> {
unsafe {
let res = Module::main(&target)
.submodule(&target, module)?
.as_managed()
.function(&target, function)?
.as_managed()
.call3(target, data_1, data_2, data_3);
Ok(res)
}
}
—
Reply to this email directly, view it on GitHub
<#97>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOQBHHYLBHPVWCYXD5QVV5DXRGD6FANCNFSM6AAAAAA2R434EQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
is it possible to call a julia function that takes more than 3 parameters?
What that .call3 should be then if it's possible?
pub fn call3<'target, 'data, T: Target<'target>>(
target: T,
module: &str,
function: &str,
data_1: Value<', 'data>,
data_2: Value<', 'data>,
data_3: Value<', 'data>
) -> JlrsResult<ValueResult<'target, 'data, T>> {
unsafe {
let res = Module::main(&target)
.submodule(&target, module)?
.as_managed()
.function(&target, function)?
.as_managed()
.call3(target, data_1, data_2, data_3);
}
Beta Was this translation helpful? Give feedback.
All reactions