Expand description
Decrement reference count of the q object. The decrement must be done when k
function gets an error
object whose type is qtype::ERROR
and when you created an object but do not intend to return it to
q side. See details on the reference page.
Example
use kdbplus::api::*;
use kdbplus::api::native::*;
#[no_mangle]
pub extern "C" fn idle_man(_: K)->K{
unsafe{
// Creare an int object.
let int=ki(777);
// Changed the mind. Discard it.
r0(int);
}
// Return null.
KNULL
}
q)idle_man: libc_api_examples 2: (`idle_man; 1);
q)idle_man[]
q)