diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-12-08 21:54:06 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-12-08 21:54:06 -0800 |
commit | 7a3f5afee7b6a6ab9f801ca3cd65c2c552554987 (patch) | |
tree | a4a0f885f92b215ee44b31b04760782356ea15c0 /tokenizer.cpp | |
parent | 5769fa6aed981e02d9e0f9f7c83f77e677f8c84f (diff) |
Initial work towars improved error reporting. Tests currently fail.
Diffstat (limited to 'tokenizer.cpp')
-rw-r--r-- | tokenizer.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tokenizer.cpp b/tokenizer.cpp index 113f8926..0705e620 100644 --- a/tokenizer.cpp +++ b/tokenizer.cpp @@ -96,16 +96,8 @@ int tok_get_error(tokenizer_t *tok) tokenizer_t::tokenizer_t(const wchar_t *b, tok_flags_t flags) : buff(NULL), orig_buff(NULL), last_type(TOK_NONE), last_pos(0), has_next(false), accept_unfinished(false), show_comments(false), last_quote(0), error(0), squash_errors(false), cached_lineno_offset(0), cached_lineno_count(0) { - - /* We can only generate error messages on the main thread due to wgettext() thread safety issues. */ - if (!(flags & TOK_SQUASH_ERRORS)) - { - ASSERT_IS_MAIN_THREAD(); - } - CHECK(b,); - this->accept_unfinished = !!(flags & TOK_ACCEPT_UNFINISHED); this->show_comments = !!(flags & TOK_SHOW_COMMENTS); this->squash_errors = !!(flags & TOK_SQUASH_ERRORS); |