static void omc_assert_compiler_common(threadData_t *threadData,ErrorLevel severity, FILE_INFO info, const char *msg, va_list args) { ErrorMessage::TokenList tokens; const char *str; GC_vasprintf(&str, msg, args); add_source_message(threadData, 0, ErrorType_runtime, severity, str, tokens, info.lineStart, info.colStart, info.lineEnd, info.colEnd, info.readonly, info.filename); }
int GC_asprintf(char **strp, const char *fmt, ...) { int len; va_list ap; va_start(ap, fmt); len = GC_vasprintf(strp, fmt, ap); va_end(ap); return len; }