Merge pull request #844 from chrisdearman/do_str

Declare do_str() function before the implementation
This commit is contained in:
Damien George 2014-09-03 21:53:48 +01:00
commit fc54250d31

View File

@ -18,6 +18,7 @@
#include "tinytest.h" #include "tinytest.h"
#include "tinytest_macros.h" #include "tinytest_macros.h"
void do_str(const char *src);
inline void do_str(const char *src) { inline void do_str(const char *src) {
mp_lexer_t *lex = mp_lexer_new_from_str_len(MP_QSTR__lt_stdin_gt_, src, strlen(src), 0); mp_lexer_t *lex = mp_lexer_new_from_str_len(MP_QSTR__lt_stdin_gt_, src, strlen(src), 0);
if (lex == NULL) { if (lex == NULL) {