Function ul_sys::JSClassSetPrivate[][src]

pub unsafe extern "C" fn JSClassSetPrivate(
    jsClass: JSClassRef,
    data: *mut c_void
) -> bool
Expand description

@function @abstract Sets the private data on a class, only possible with classes created with version 1000 (extended callbacks). @param jsClass The class to set the data on @param data A void* to set as the private data for the class @result true if the data has been set on the class, false if the class has not been created with version 1000 (extended callbacks) @discussion Only classes with version 1000 (extended callbacks) can store private data, for other classes the function always fails. The set pointer is not touched by the engine.