pub unsafe extern "C" fn jit_value_create_nint_constant(
func: jit_function_t,
type_: jit_type_t,
const_value: jit_nint,
) -> jit_value_tExpand description
Create a new native integer constant in the specified function. Returns NULL if out of memory.
The type parameter indicates the actual type of the constant, if it happens to be something other than jit_type_nint. For example, the following will create an unsigned byte constant:
value = jit_value_create_nint_constant(func, jit_type_ubyte, 128);This function can be used to create constants of type jit_type_sbyte, jit_type_ubyte, jit_type_short, jit_type_ushort, jit_type_int, jit_type_uint, jit_type_nint, jit_type_nuint, and all pointer types.