ui/common/context.c

changeset 60
ee4e4742391e
parent 56
294d5515583a
equal deleted inserted replaced
59:6bd37fe6d905 60:ee4e4742391e
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

mercurial