mirror of
https://github.com/icewind1991/ivory.git
synced 2026-06-03 18:54:07 +02:00
cleanup example
This commit is contained in:
parent
135185ca50
commit
c7e9171267
2 changed files with 2 additions and 5 deletions
|
|
@ -1,8 +1,5 @@
|
||||||
use std::intrinsics::transmute;
|
use ivory::{ivory_export, ivory_module};
|
||||||
|
|
||||||
use ivory::*;
|
|
||||||
use ivory::externs::printf;
|
use ivory::externs::printf;
|
||||||
use ivory::zend::{ExecuteData, PhpVal, ZVal};
|
|
||||||
|
|
||||||
#[ivory_export]
|
#[ivory_export]
|
||||||
fn hello_other(other: String) {
|
fn hello_other(other: String) {
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ fn export_fn(item: ItemFn) -> TokenStream {
|
||||||
::ivory::externs::printf("unexpected number of arguments");
|
::ivory::externs::printf("unexpected number of arguments");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let mut args: Vec<PhpVal> = data.args().collect();
|
let mut args: Vec<::ivory::zend::PhpVal> = data.args().collect();
|
||||||
#(#arg_cast);*
|
#(#arg_cast);*
|
||||||
let result = #body;
|
let result = #body;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue