MCPcopy Create free account
hub / github.com/CyanogenMod/android_frameworks_base / error

Method error

tools/aapt/SourcePos.cpp:119–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119int
120SourcePos::error(const char* fmt, ...) const
121{
122 int retval=0;
123 char buf[1024];
124 va_list ap;
125 va_start(ap, fmt);
126 retval = vsnprintf(buf, sizeof(buf), fmt, ap);
127 va_end(ap);
128 char* p = buf + retval - 1;
129 while (p > buf && *p == '\n') {
130 *p = '\0';
131 p--;
132 }
133 g_errors.push_back(ErrorPos(this->file, this->line, String8(buf), true));
134 return retval;
135}
136
137int
138SourcePos::warning(const char* fmt, ...) const

Callers

nothing calls this directly

Calls 1

ErrorPosClass · 0.85

Tested by

no test coverage detected