ui/common/context.c

changeset 916
6fdcf1cbbec9
parent 906
edfdf9776da9
child 960
e88ca7dfa943
equal deleted inserted replaced
915:ddbbceb8c3a5 916:6fdcf1cbbec9
462 var = ui_malloc(ctx, sizeof(UiVar)); 462 var = ui_malloc(ctx, sizeof(UiVar));
463 cxMapPut(ctx->vars, name, var); 463 cxMapPut(ctx->vars, name, var);
464 } else { 464 } else {
465 // override var with new value 465 // override var with new value
466 if(var->type != type) { 466 if(var->type != type) {
467 fprintf(stderr, "Error: var %s type mismatch: %s - %s\n", name, uic_type2str(var->type), type); 467 fprintf(stderr, "Error: var %s type mismatch: %s - %s\n", name, uic_type2str(var->type), uic_type2str(type));
468 return; 468 return;
469 } 469 }
470 if(var->bound) { 470 if(var->bound) {
471 fprintf(stderr, "Error: var %s already bound\n", name); 471 fprintf(stderr, "Error: var %s already bound\n", name);
472 return; 472 return;

mercurial