2 // Copyright (c) 2002-2010 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
7 // debug.cpp: Debugging utilities.
9 #include "common/debug.h"
14 static bool trace_on = true;
18 void trace(const char *format, ...)
24 FILE *file = fopen("debug.txt", "a");
29 va_start(vararg, format);
30 vfprintf(file, format, vararg);