mb_make_value_t |
![]() ![]() |
mb_value_t* mb_make_value_t( mb_value_t* val, mb_value_u value, mb_data_e type, char* name )
This is a helper function to make it easy to create a mb_value_t variable. It returns the addess of the supplied mb_value_t output variable val so it can be used in function calls. The name parameter may be set to NULL if not used.
Example
mb_value_t val;
// Create environment variable MY_NAME and set it to my name mb_make_environment_var( bas, "MY_NAME", mb_make_value_t( &val, "Nisse Hult", MB_DT_STRING, NULL ) );
|