Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
STR problem (*solved*)
#11
boriel Wrote:zxb.exe already returns an errorlevel <> 0 if there were an error (this is the standard behavior). You can however tell the compiler to use a different file (--stderr), but it will not separate warnings from errors. I suppose I will have to add a flag for that.
No chance to read the error level because error level cannot be readed out, but you send the usual compiler warning (INFO) like these:
Code:
INFO: COPY_ATTR is not defined. No optimization is done.
INFO: BORDER is not defined. No optimization is done.
INFO: CLS is not defined. No optimization is done.
INFO: BRIGHT_TMP is not defined. No optimization is done.
INFO: PRINT_STR is not defined. No optimization is done.
INFO: PRINT_EOL_ATTR is not defined. No optimization is done.
INFO: PRINT_EOL is not defined. No optimization is done.
INFO: FLASH_TMP is not defined. No optimization is done.
INFO: __STREQ is not defined. No optimization is done.
INFO: CHR is not defined. No optimization is done.
INFO: PRINT_STR_FREE is not defined. No optimization is done.
to --stdout, so maybe you can redirdect the "variable x not used" from --stderr also to --stdout because it is at least no error but only a warning/info and the program was compiled after all.

Edit: I solved if presently by filtering returned error string, so if the word "warning" is present, it does not count as critical error, so the emulator can start.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)