Created
August 17, 2014 22:50
-
-
Save zao/c657698c7f3f7df8bdfa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inline void lv_range_strip_comment(lv_range* r) { | |
char* p = memchr(r->from, '#', r->to - r->from); | |
if (p) { | |
r->to = p; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment