assemble.c
changeset 486 45efac751027
parent 474 c2d4e63efdd1
child 524 03eea2f0762c
equal deleted inserted replaced
485:1cf40e016918 486:45efac751027
    23     const MOJOSHADER_parseData *pd;
    23     const MOJOSHADER_parseData *pd;
    24     int retval = 0;
    24     int retval = 0;
    25 
    25 
    26     pd = MOJOSHADER_assemble(buf, NULL, NULL, NULL);
    26     pd = MOJOSHADER_assemble(buf, NULL, NULL, NULL);
    27     if (pd->error != NULL)
    27     if (pd->error != NULL)
    28         printf("ERROR: %s\n", pd->error);
    28         printf("ERROR: (line %d) %s\n", pd->error_position, pd->error);
    29     else
    29     else
    30     {
    30     {
    31         if (pd->output != NULL)
    31         if (pd->output != NULL)
    32         {
    32         {
    33             if (fwrite(pd->output, pd->output_len, 1, io) != 1)
    33             if (fwrite(pd->output, pd->output_len, 1, io) != 1)