a_class(a_Preprocessor_SourceFiles) {
a_VecChr buf[1], stk[1];
char *s;
a_DbgLv1( a_DbgObjInf doi[1]; ) // ← ココ!
};
// [註] a_DbgLv1(...) は a_DbgLv >= 1 のときだけ有効になるマクロです。#if (a_DbgLv >= 1) ~ #endif だと3行になりますが、これなら1行で書けます。a_static void a_Preprocessor_SourceFiles_ini(_aDef_ a_Preprocessor_SourceFiles *w)
{
a_VecChr_ini4(_a_ w->buf, w->stk, 0, 0);
a_VecChr_reserve0(w->buf);
w->s = w->buf->p;
a_DbgLv2( a_DbgObjInf_ini(_aThr, w->doi, "Preprocessor_SourceFiles"); ) // ← ココ!
}
// [註] a_DbgLv2(...) は a_DbgLv >= 1 のときだけ有効になるマクロです。a_static void a_Preprocessor_SourceFiles_din(_aDef_ a_Preprocessor_SourceFiles *w)
{
a_DbgLv2( a_DbgObjInf_din(_aThr, w->doi); ) // ← ココ!
intptr_t i, n = a_VecChr_N(w->stk) / (sizeof (a_Preprocessor_SourceFile *));
a_Preprocessor_SourceFile **p = (a_Preprocessor_SourceFile **) w->stk->p;
for (i = 0; i < n; i++) {
a_Preprocessor_SourceFile_din(p[i]);
a_free(_a_ p[i], sizeof (a_Preprocessor_SourceFile));
}
a_VecChr_din4(_a_ w->buf, w->stk, 0, 0);
}| コメント | お名前 | NameLink | |