Skip to content

Commit

Permalink
CASE macro updating
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin committed Jan 23, 2013
1 parent 962abf5 commit 6309666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion str_switch.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#define SWITCH(str) switch(s_s::str_hash_for_switch(str))
#define CASE(str) static_assert(s_s::str_is_correct(str) && (s_s::str_len(str) <= s_s::MAX_LEN),\
"CASE string contains wrong characters, or its length is greater than 10");\
"CASE string contains wrong characters, or its length is greater than 9");\
case s_s::str_hash(str, s_s::str_len(str))
#define DEFAULT default

Expand Down

0 comments on commit 6309666

Please sign in to comment.