mojoshader_preprocessor.c
changeset 953 ebcde4f1e376
parent 952 7e7d5737f9a6
child 955 9315c168a97a
equal deleted inserted replaced
952:7e7d5737f9a6 953:ebcde4f1e376
  1392             else if (t == ((Token) ' '))
  1392             else if (t == ((Token) ' '))
  1393             {
  1393             {
  1394                 // don't add whitespace to the start, so we recognize
  1394                 // don't add whitespace to the start, so we recognize
  1395                 //  void calls correctly.
  1395                 //  void calls correctly.
  1396                 origexpr = expr = " ";
  1396                 origexpr = expr = " ";
  1397                 origexprlen = (buffer_size(buffer) == 0) ? 0 : 1;
  1397                 origexprlen = (buffer_size(origbuffer) == 0) ? 0 : 1;
       
  1398                 exprlen = (buffer_size(buffer) == 0) ? 0 : 1;
  1398             } // else if
  1399             } // else if
  1399 
  1400 
  1400             else if (t == TOKEN_IDENTIFIER)
  1401             else if (t == TOKEN_IDENTIFIER)
  1401             {
  1402             {
  1402                 const Define *def = find_define_by_token(ctx);
  1403                 const Define *def = find_define_by_token(ctx);