view dmd/DefaultInitExp.d @ 76:5196b7829be2

Changed mars.c to mars2.c to avoid obscure bugs when wrong main function is linked
author korDen
date Sun, 29 Aug 2010 13:19:02 +0400
parents 2e2a5c3f943a
children e28b18c23469
line wrap: on
line source

module dmd.DefaultInitExp;

import dmd.Expression;
import dmd.OutBuffer;
import dmd.Loc;
import dmd.Scope;
import dmd.HdrGenState;
import dmd.TOK;
import dmd.Token;

class DefaultInitExp : Expression
{
	TOK subop;

	this(Loc loc, TOK subop, int size)
	{
		super(loc, TOKdefault, size);
		this.subop = subop;
	}

	abstract Expression resolve(Loc loc, Scope sc);

	override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
	{
		buf.writestring(Token.toChars(subop));
	}
}