207 } |
207 } |
208 |
208 |
209 UiVar* uic_create_value_var(UiContext* ctx, void* value) { |
209 UiVar* uic_create_value_var(UiContext* ctx, void* value) { |
210 UiVar *var = (UiVar*)ui_malloc(ctx, sizeof(UiVar)); |
210 UiVar *var = (UiVar*)ui_malloc(ctx, sizeof(UiVar)); |
211 var->from = NULL; |
211 var->from = NULL; |
212 var->from_ctx = NULL; |
212 var->from_ctx = ctx; |
213 var->value = value; |
213 var->value = value; |
214 var->type = UI_VAR_SPECIAL; |
214 var->type = UI_VAR_SPECIAL; |
215 return var; |
215 return var; |
216 } |
216 } |
217 |
217 |