mirror of
https://github.com/icewind1991/ivory.git
synced 2026-06-03 10:44:09 +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::*;
|
||||
use ivory::{ivory_export, ivory_module};
|
||||
use ivory::externs::printf;
|
||||
use ivory::zend::{ExecuteData, PhpVal, ZVal};
|
||||
|
||||
#[ivory_export]
|
||||
fn hello_other(other: String) {
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ fn export_fn(item: ItemFn) -> TokenStream {
|
|||
::ivory::externs::printf("unexpected number of arguments");
|
||||
return;
|
||||
}
|
||||
let mut args: Vec<PhpVal> = data.args().collect();
|
||||
let mut args: Vec<::ivory::zend::PhpVal> = data.args().collect();
|
||||
#(#arg_cast);*
|
||||
let result = #body;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue