mojoshader_common.c
changeset 1140 fad7ed946c06
parent 1116 0ef3d106dab9
child 1141 77468a2a9165
equal deleted inserted replaced
1139:8cda6a463824 1140:fad7ed946c06
   797     if (buf == NULL)
   797     if (buf == NULL)
   798         return 0;
   798         return 0;
   799     va_copy(ap, va);
   799     va_copy(ap, va);
   800     vsnprintf(buf, len + 1, fmt, ap);  // rebuild it.
   800     vsnprintf(buf, len + 1, fmt, ap);  // rebuild it.
   801     va_end(ap);
   801     va_end(ap);
   802     const int retval = buffer_append(buffer, scratch, len);
   802     const int retval = buffer_append(buffer, buf, len);
   803     buffer->f(buf, buffer->d);
   803     buffer->f(buf, buffer->d);
   804     return retval;
   804     return retval;
   805 } // buffer_append_va
   805 } // buffer_append_va
   806 
   806 
   807 size_t buffer_size(Buffer *buffer)
   807 size_t buffer_size(Buffer *buffer)