Skip to content

about day2 #262

Description

@luohuayouyisuiliushui

I added this in leptjson.c.And I wanna know if it will work.
#define LEPT_PARSE_LITERAL(c,str) do { EXPECT(c, (*str));
size_t i = 1;
while(str[i] != 0){
if(*c->json != str[i])
return LEPT_PARSE_INVALID_VALUE;
c->json++; i++;
}
}while(0)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions