OpenDream icon indicating copy to clipboard operation
OpenDream copied to clipboard

Whitespace after invalid parameter-macro usage is ignored

Open wixoaGit opened this issue 3 years ago • 1 comments

A change in #827 intended to fix #698 ended up adding a new bug in the preprocessing of whitespace.

#define TEST(x)
/world/New()
	..()
	var/TEST = new /obj()
	var/t = TEST .type

TEST .type should not be valid here, but the preprocessor is throwing away the space during its search for TEST(x)'s arguments.

Relevant line

wixoaGit avatar Oct 17 '22 22:10 wixoaGit

Agh!

Altoids1 avatar Oct 18 '22 20:10 Altoids1