How to handle failures in external scanner #1191
Unanswered
MichaHoffmann
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone,
I was wondering how to handle failures in the external scanner ( for example: scanner size exceeds
TREE_SITTER_SERIALIZATION_BUFFER_SIZE
when serializing; allocation during a scan fails; some other precondition violation ).Since my C is not too strong i was wondering: is it bad form to use
assert
macros in the scanner code to handle such situations?Thank you
Beta Was this translation helpful? Give feedback.
All reactions