Globals

Global variables may be used in multiple functions, and may have their values changed at runtime.

Functions

ARBB_VM_EXPORT arbb_error_t arbb_create_global (arbb_context_t context, arbb_global_variable_t *out_var, arbb_type_t type, const char *name, arbb_binding_t binding, void *debug_data_ptr, arbb_error_details_t *details)
 Creates a new global variable.
ARBB_VM_EXPORT arbb_error_t arbb_get_variable_from_global (arbb_context_t context, arbb_variable_t *out_var, arbb_global_variable_t global_var, arbb_error_details_t *details)
 Sets out_var to the arbb_variable_t object wrapped by the given arbb_global_variable_t object.

Function Documentation

ARBB_VM_EXPORT arbb_error_t arbb_create_global ( arbb_context_t  context,
arbb_global_variable_t out_var,
arbb_type_t  type,
const char *  name,
arbb_binding_t  binding,
void *  debug_data_ptr,
arbb_error_details_t details 
)

Creates a new global variable.

Returns:
An error code depending on the result of the operation:
ARBB_VM_EXPORT arbb_error_t arbb_get_variable_from_global ( arbb_context_t  context,
arbb_variable_t out_var,
arbb_global_variable_t  global_var,
arbb_error_details_t details 
)

Sets out_var to the arbb_variable_t object wrapped by the given arbb_global_variable_t object.

Returns:
An error code depending on the result of the operation:

Submit feedback on this help topic

Copyright © 2010, Intel Corporation. All rights reserved.