How can I detects warnings and errors from libtcc?

libtcc's error callback function does not provides the warnings or error flag.

But, libtcc's tcc_compile_string function returns -1 if fatal error was found, 0 otherwise. Then, you can determine the warnings or errors after compilation.

Published: 2013-08-27(Tue) 19:47