Skip to main content

pxs_newfactory

Function pxs_newfactory 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pxs_newfactory( func: pxs_Func, args: *mut pxs_Var, ) -> pxs_VarT
Expand description

Add a factory variable. This variable will be instantiated once at module startup.

Args should not contain runtime. It gets added automatically.

Basically does:

var_name = callback(args)