mojoshader.c
changeset 1018 ad6c6286df61
parent 947 16af6e2b2ada
child 1020 c0fe544e0feb
equal deleted inserted replaced
1017:5034d40d718a 1018:ad6c6286df61
   240 #if !MOJOSHADER_FORCE_ALLOCATOR
   240 #if !MOJOSHADER_FORCE_ALLOCATOR
   241 void *MOJOSHADER_internal_malloc(int bytes, void *d) { return malloc(bytes); }
   241 void *MOJOSHADER_internal_malloc(int bytes, void *d) { return malloc(bytes); }
   242 void MOJOSHADER_internal_free(void *ptr, void *d) { free(ptr); }
   242 void MOJOSHADER_internal_free(void *ptr, void *d) { free(ptr); }
   243 #endif
   243 #endif
   244 
   244 
   245 MOJOSHADER_error MOJOSHADER_out_of_mem_error = { "Out of memory", NULL, -1 };
   245 MOJOSHADER_error MOJOSHADER_out_of_mem_error = {
       
   246     "Out of memory", NULL, MOJOSHADER_POSITION_NONE
       
   247 };
       
   248 
   246 MOJOSHADER_parseData MOJOSHADER_out_of_mem_data = {
   249 MOJOSHADER_parseData MOJOSHADER_out_of_mem_data = {
   247     1, &MOJOSHADER_out_of_mem_error, 0, 0, 0, 0,
   250     1, &MOJOSHADER_out_of_mem_error, 0, 0, 0, 0,
   248     MOJOSHADER_TYPE_UNKNOWN, 0, 0, 0, 0
   251     MOJOSHADER_TYPE_UNKNOWN, 0, 0, 0, 0
   249 };
   252 };
   250 
   253