Skip to content

Commit b22eed3

Browse files
committed
Make some consts extern
1 parent c44bab2 commit b22eed3

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/error_handling.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ namespace Sass {
1313

1414
namespace Exception {
1515

16+
sass::string def_msg("Invalid sass detected");
17+
sass::string def_op_msg("Undefined operation");
18+
sass::string def_op_null_msg("Invalid null operation");
19+
sass::string def_nesting_limit("Code too deeply neested");
20+
1621
Base::Base(SourceSpan pstate, sass::string msg, Backtraces traces)
1722
: std::runtime_error(msg.c_str()), msg(msg),
1823
prefix("Error"), pstate(pstate), traces(traces)

src/error_handling.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ namespace Sass {
2121

2222
namespace Exception {
2323

24-
const sass::string def_msg = "Invalid sass detected";
25-
const sass::string def_op_msg = "Undefined operation";
26-
const sass::string def_op_null_msg = "Invalid null operation";
27-
const sass::string def_nesting_limit = "Code too deeply neested";
24+
extern sass::string def_msg;
25+
extern sass::string def_op_msg;
26+
extern sass::string def_op_null_msg;
27+
extern sass::string def_nesting_limit;
2828

2929
const sass::string msg_recursion_limit =
3030
"Too deep recursion detected. This can be caused by too deep level nesting.\n"

0 commit comments

Comments
 (0)