Commit f33da6ec authored by Pavel Vainerman's avatar Pavel Vainerman

(uniset-codegen): решил не делать dlog static-ом.

parent bcff0fab
......@@ -187,8 +187,8 @@
void setMsg( UniSetTypes::ObjectId code, bool state );
static DebugStream dlog;
static void init_dlog(DebugStream& dlog);
DebugStream dlog;
void init_dlog(DebugStream& dlog);
</xsl:template>
<xsl:template name="COMMON-HEAD-PROTECTED">
......@@ -258,15 +258,9 @@
<xsl:template name="COMMON-CC-FILE">
// ------------------------------------------------------------------------------------------
DebugStream <xsl:value-of select="$CLASSNAME"/>_SK::dlog;
static bool init_dlog_ok = false;
void <xsl:value-of select="$CLASSNAME"/>_SK::init_dlog( DebugStream&amp; d )
{
if( !init_dlog_ok )
{
<xsl:value-of select="$CLASSNAME"/>_SK::dlog = d;
init_dlog_ok = true;
}
<xsl:value-of select="$CLASSNAME"/>_SK::dlog = d;
}
// ------------------------------------------------------------------------------------------
void <xsl:value-of select="$CLASSNAME"/>_SK::processingMessage( UniSetTypes::VoidMessage* _msg )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment