/[svn]/linuxsampler/trunk/src/scriptvm/common.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/scriptvm/common.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2885 by schoenebeck, Fri Apr 22 15:37:45 2016 UTC revision 2888 by schoenebeck, Sun Apr 24 18:16:10 2016 UTC
# Line 668  namespace LinuxSampler { Line 668  namespace LinuxSampler {
668      struct ParserIssue {      struct ParserIssue {
669          String txt; ///< Human readable explanation text of the parser issue.          String txt; ///< Human readable explanation text of the parser issue.
670          int line; ///< Line number within the script where this issue was encountered.          int line; ///< Line number within the script where this issue was encountered.
671            int column; ///< Column within the script where this issue was encountered.
672          ParserIssueType_t type; ///< Whether this issue is either a parser error or just a parser warning.          ParserIssueType_t type; ///< Whether this issue is either a parser error or just a parser warning.
673    
674          /**          /**
# Line 676  namespace LinuxSampler { Line 677  namespace LinuxSampler {
677          inline void dump() {          inline void dump() {
678              switch (type) {              switch (type) {
679                  case PARSER_ERROR:                  case PARSER_ERROR:
680                      printf("[ERROR] line %d: %s\n", line, txt.c_str());                      printf("[ERROR] line %d, column %d: %s\n", line, column, txt.c_str());
681                      break;                      break;
682                  case PARSER_WARNING:                  case PARSER_WARNING:
683                      printf("[Warning] line %d: %s\n", line, txt.c_str());                      printf("[Warning] line %d, column %d: %s\n", line, column, txt.c_str());
684                      break;                      break;
685              }              }
686          }          }

Legend:
Removed from v.2885  
changed lines
  Added in v.2888

  ViewVC Help
Powered by ViewVC