Load the string parser for strings

This commit is contained in:
Pierre Pronchery 2015-09-07 23:34:49 +02:00
parent f5a7dfaa04
commit dad5027387

View File

@ -284,7 +284,7 @@ int parser_string(AsmPrefs * ap, AsmCode * code, char const * string)
prefs.filters = CPP_FILTER_COMMENT;
memset(&state, 0, sizeof(state));
state.code = code;
if((state.cpp = cpp_new(&prefs)) == NULL)
if((state.cpp = cpp_new_string(&prefs, string)) == NULL)
return -1;
if(ap != NULL)
for(i = 0; i < ap->defines_cnt; i++)