05-18-2009, 11:46 AM
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.
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!
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!