Lines Matching refs:format
21 void VPrintFToString(std::string* str, size_t str_offset, const char* format,
24 size_t len = str_offset + strlen(format);
34 format, args_copy);
43 void PrintFToString(std::string* str, size_t str_offset, const char* format,
46 va_start(args, format);
47 VPrintFToString(str, str_offset, format, args);
54 std::string WasmError::FormatError(const char* format, va_list args) {
56 VPrintFToString(&result, 0, format, args);
60 void ErrorThrower::Format(ErrorType type, const char* format, va_list args) {
70 VPrintFToString(&error_msg_, context_len, format, args);
74 void ErrorThrower::TypeError(const char* format, ...) {
76 va_start(arguments, format);
77 Format(kTypeError, format, arguments);
81 void ErrorThrower::RangeError(const char* format, ...) {
83 va_start(arguments, format);
84 Format(kRangeError, format, arguments);
88 void ErrorThrower::CompileError(const char* format, ...) {
90 va_start(arguments, format);
91 Format(kCompileError, format, arguments);
95 void ErrorThrower::LinkError(const char* format, ...) {
97 va_start(arguments, format);
98 Format(kLinkError, format, arguments);
102 void ErrorThrower::RuntimeError(const char* format, ...) {
104 va_start(arguments, format);
105 Format(kRuntimeError, format, arguments);