improved log message handling more

This commit is contained in:
hyunghwan.chung
2016-06-03 16:16:23 +00:00
parent eeb2fdebbd
commit f43240ca4d
4 changed files with 48 additions and 13 deletions

View File

@ -4545,9 +4545,15 @@ static int __compile_class_definition (stix_t* stix, int extend)
{
int super_is_nil = 0;
printf ("DEFININING CLASS ");
print_oocs (&stix->c->cls.name);
printf ("\n");
if (STIX_LOG_ENABLED(stix,STIX_LOG_COMPILER | STIX_LOG_DEBUG))
{
stix_logbfmt (stix,
STIX_LOG_COMPILER | STIX_LOG_DEBUG,
"Defining a class %.*S\n",
stix->c->cls.fqn.len,
stix->c->cls.fqn.ptr);
}
if (stix->c->tok.type == STIX_IOTOK_LPAREN)
{
/* superclass is specified. new class defintion.
@ -4820,9 +4826,14 @@ static int __compile_pooldic_definition (stix_t* stix)
return -1;
}
printf ("DEFININING POOL DICTIONARY ");
print_oocs (&stix->c->cls.name);
printf ("\n");
if (STIX_LOG_ENABLED(stix,STIX_LOG_COMPILER | STIX_LOG_DEBUG))
{
stix_logbfmt (stix,
STIX_LOG_COMPILER | STIX_LOG_DEBUG,
"Defining a pool dictionary %.*S\n",
stix->c->cls.fqn.len,
stix->c->cls.fqn.ptr);
}
GET_TOKEN (stix);