Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Extern Declaration (original form)
- pub fn os_task_init(
- t: *mut os_task,
- name: *const c_char,
- func: os_task_func_t,
- ...);
- // (1) Wrapper Declaration Form
- pub fn task_init(
- t: Out<os_task>,
- name: &Strn,
- func: os_task_func_t,
- ...);
- // (2) Validation Statement Form
- Strn::validate_bytestr(name.bytestr);
- // (3) Call Expression Form
- os_task_init(
- t as *mut os_task,
- name.bytestr.as_ptr() as *const c_char,
- func as os_task_func_t,
- ...);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement