// define
assert_preproc("123", 0, " #define test 123\ntest");
- assert_preproc("this is a", 0, " #define test\nthis is a test");
+ assert_preproc("this is a ", 0, " #define test\nthis is a test");
assert_preproc("", -1, " #define 1test 123\n");
assert_preproc("", -1, " #define\n");
assert_preproc("this is a 123 for defs", 0,
switch (def->type) {
case ULAS_PPDEF: {
size_t val_len = strlen(def->value);
+ int wsi = ulas_preproclws(pp, praw_line - read, *n);
if (val_len) {
// make sure to include leading white space
- int wsi = ulas_preproclws(pp, praw_line - read, *n);
// adjust total length
*n -= strlen(pp->tok.buf);
*n += val_len;