# include "llmain.h"
# include "cpperror.h"
# include "Headers/version.h" /* Visual C++ finds a different version.h on some path! */
+# include<assert.h>
/* Don't allow possibly-recursive assertion failures. */
# undef llassert
{
if (context_getFlag (FLG_WARNFLAGS))
{
- llgenmsg (s, g_currentloc);
+ showHerald ();
+
+ if (fileloc_isBuiltin (g_currentloc))
+ {
+ llmsg (message ("Warning: %q", s));
+ }
+ else
+ {
+ llgenmsg (message ("Warning: %q", s), g_currentloc);
+ }
}
else
{
showSourceLoc (srcFile, srcLine);
printCodePoint ();
printBugReport ();
+ assert(FALSE);
llexit (LLFAILURE);
}
void displayScan (cstring msg)
{
- if (s_scanOpen)
- {
- displayScanClose ();
- }
-
llassert (!s_scanOpen);
if (context_getFlag (FLG_SHOWSCAN))
{
- showHerald ();
fprintf (g_messagestream, "< %s >\n", cstring_toCharsSafe (msg));
(void) fflush (g_messagestream);
}
void displayScanOpen (cstring msg)
{
- if (s_scanOpen)
- {
- displayScanClose ();
- }
-
llassert (!s_scanOpen);
s_scanOpen = TRUE;