Skip to content

Commit f03eb5e

Browse files
committed
Rename DEBUG->DEBUGSTMT
gmake BUILD=debug-shared fails because DEBUG symbol defined for debugging overwrites DEBUG statement type and libsass fails to compile. m> gmake CC=cc CXX=c++ BUILD=debug-shared c++ -g -DDEBUG -DDEBUG_LVL="NONE" -Wall -DLIBSASS_VERSION="\"3.2.5-151-g9b4e4-dirty\"" -std=c++0x -I /home/saper/sw/libsass/include -fPIC -fPIC -c -o src/ast.o src/ast.cpp In file included from src/ast.cpp:1: src/ast.hpp:319:7: error: expected '}' DEBUG, ^ <command line>:1:15: note: expanded from here ^ src/ast.hpp:301:25: note: to match this '{' enum Statement_Type { ^ src/ast.hpp:596:7: error: no matching member function for call to 'statement_type' { statement_type(DEBUG); } ^~~~~~~~~~~~~~ src/ast.hpp:327:34: note: candidate function not viable: no known conversion from 'int' to 'Sass::Statement::Statement_Type' for 1st argument ADD_PROPERTY(Statement_Type, statement_type) ^ src/ast_def_macros.hpp:44:8: note: expanded from macro 'ADD_PROPERTY' type name(type name##__) { return name##_ = name##__; }\ ^ src/ast.hpp:327:34: note: candidate function not viable: requires 0 arguments, but 1 was provided src/ast_def_macros.hpp:43:8: note: expanded from macro 'ADD_PROPERTY' type name() const { return name##_; }\ ^ In file included from src/ast.cpp:1: src/ast.hpp:622:22: error: use of undeclared identifier 'IF' { statement_type(IF); } ^ src/ast.hpp:639:22: error: use of undeclared identifier 'FOR'; did you mean 'OR'? { statement_type(FOR); } ^~~ OR /home/saper/sw/libsass/include/sass_values.h:37:8: note: 'OR' declared here AND, OR, // logical connectives ^ In file included from src/ast.cpp:1: src/ast.hpp:639:7: error: no matching member function for call to 'statement_type' { statement_type(FOR); } ^~~~~~~~~~~~~~ src/ast.hpp:327:34: note: candidate function not viable: no known conversion from 'Sass_OP' to 'Sass::Statement::Statement_Type' for 1st argument ADD_PROPERTY(Statement_Type, statement_type) ^ src/ast_def_macros.hpp:44:8: note: expanded from macro 'ADD_PROPERTY' type name(type name##__) { return name##_ = name##__; }\ ^ src/ast.hpp:327:34: note: candidate function not viable: requires 0 arguments, but 1 was provided src/ast_def_macros.hpp:43:8: note: expanded from macro 'ADD_PROPERTY' type name() const { return name##_; }\ ^ In file included from src/ast.cpp:1: src/ast.hpp:652:22: error: use of undeclared identifier 'EACH' { statement_type(EACH); } ^ src/ast.hpp:664:22: error: use of undeclared identifier 'WHILE' { statement_type(WHILE); } ^ 7 errors generated. Makefile:230: recipe for target 'src/ast.o' failed
1 parent 9b4e424 commit f03eb5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ast.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ namespace Sass {
316316
RETURN,
317317
EXTEND,
318318
ERROR,
319-
DEBUG,
319+
DEBUGSTMT,
320320
WHILE,
321321
EACH,
322322
FOR,
@@ -593,7 +593,7 @@ namespace Sass {
593593
public:
594594
Debug(ParserState pstate, Expression* val)
595595
: Statement(pstate), value_(val)
596-
{ statement_type(DEBUG); }
596+
{ statement_type(DEBUGSTMT); }
597597
ATTACH_OPERATIONS()
598598
};
599599

0 commit comments

Comments
 (0)