blob: b840d62a5e4909cc8ba82f8bfb5d9f8f5ad086d5 [file] [log] [blame]
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "debug.h"
#ifdef DEBUG
#include <stdarg.h>
#include <stdio.h>
#endif
int debug_printf(const char* format, ...) {
#ifdef DEBUG
va_list args;
va_start(args, format);
int ret = vprintf(format, args);
va_end(args);
return ret;
#else
return 0;
#endif
}