Skip to content

Conversation

@jeng
Copy link

@jeng jeng commented Dec 28, 2022

It looks like some stale code was left in the ifdef for STB_C_LEX_ISWHITE. The changes worked for me with this definition of isWhite in the file I'm using the library from:

#define STB_C_LEXER_IMPLEMENTATION
int myWhite(char *c){
    return (*c == ' ' || *c == '\t' || *c == '\f');
}
#define STB_C_LEX_ISWHITE(x) myWhite(x)
#include "stb_c_lexer.h"

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants