ui/common/context.c

changeset 108
fcf6d5fac8f5
parent 94
d51e334c1439
child 111
40dbf1a7526a
equal deleted inserted replaced
107:9aff1dc3990d 108:fcf6d5fac8f5
174 var->from = from; 174 var->from = from;
175 175
176 return var; 176 return var;
177 } 177 }
178 } else { 178 } else {
179 // create an empty value and add it to the window variables 179 // create an empty value and add it to the context variables
180 // it can be moved to the document vars later 180 // it can be moved to the document vars later
181 void *value = uic_create_value(ctx->mempool->allocator, type); 181 void *value = uic_create_value(ctx->mempool->allocator, type);
182 if(!value) { 182 if(!value) {
183 fprintf(stderr, "UI Error: Cannot create empty value.\n"); 183 fprintf(stderr, "UI Error: Cannot create empty value.\n");
184 return NULL; 184 return NULL;

mercurial