Constants are variables of scalar type whose values never change.
Functions | |
ARBB_VM_EXPORT arbb_error_t | arbb_create_constant (arbb_context_t context, arbb_global_variable_t *out_var, arbb_type_t type, void *data, void *debug_data_ptr, arbb_error_details_t *details) |
Creates a scalar constant of the given type. |
ARBB_VM_EXPORT arbb_error_t arbb_create_constant | ( | arbb_context_t | context, | |
arbb_global_variable_t * | out_var, | |||
arbb_type_t | type, | |||
void * | data, | |||
void * | debug_data_ptr, | |||
arbb_error_details_t * | details | |||
) |
Creates a scalar constant of the given type.
The data for the constant is copied in from the pointer argument passed to the data
parameter.
context
is a null object.out_var
is a null pointer.type
is a null object.type
is not a scalar type.data
is a null pointer. Copyright © 2010, Intel Corporation. All rights reserved.