preprocessor.cxx

changeset 66
4fc1ec88aa41
parent 48
976c57f153b3
--- a/preprocessor.cxx	Sun Aug 26 23:54:58 2012 +0300
+++ b/preprocessor.cxx	Wed Dec 19 03:27:15 2012 +0200
@@ -104,7 +104,7 @@
 	str directive = PPReadWord (trash);
 	
 	// Now check the directive name against known names
-	if (!directive.icompare ("include")) {
+	if (directive == "include") {
 		// #include-directive
 		char terminator;
 		str file = PPReadWord (terminator);
@@ -113,6 +113,12 @@
 			ParserError ("expected file name for #include, got nothing instead");
 		OpenFile (file);
 		return true;
+	} else if (directive == "neurosphere") {
+		// #neurosphere - activates neurosphere compatibility, aka stuff
+		// that is still WIP and what main zandronum does not yet support.
+		// Most end users should never need this.
+		g_Neurosphere = true;
+		return true;
 	}
 	
 	ParserError ("unknown directive `#%s`!", directive.chars());

mercurial