• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 /*
3  * Copyright 2010 Google Inc.
4  *
5  * Use of this source code is governed by a BSD-style license that can be
6  * found in the LICENSE file.
7  */
8 
9 
10 
11 #include "GrTypes.h"
12 
13 #include <stdarg.h>
14 #include <stdio.h>
15 
GrPrintf(const char format[],...)16 void GrPrintf(const char format[], ...) {
17     const size_t MAX_BUFFER_SIZE = 2048;
18 
19     char buffer[MAX_BUFFER_SIZE + 1];
20     va_list args;
21 
22     va_start(args, format);
23     vsnprintf(buffer, MAX_BUFFER_SIZE, format, args);
24     va_end(args);
25 
26     printf("%s", buffer);
27 }
28 
29 
30