debug.h (7f3dea244c40159a41ab22da77a434d7c5b5e85a) debug.h (0edd3ca7780350e672c966387c34a93aad72f09f)
1/*-
2 * Copyright 1996-1998 John D. Polstra.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 22 unchanged lines hidden (view full) ---

31
32#ifndef DEBUG_H
33#define DEBUG_H 1
34
35#ifndef __GNUC__
36#error "This file must be compiled with GCC"
37#endif
38
1/*-
2 * Copyright 1996-1998 John D. Polstra.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 22 unchanged lines hidden (view full) ---

31
32#ifndef DEBUG_H
33#define DEBUG_H 1
34
35#ifndef __GNUC__
36#error "This file must be compiled with GCC"
37#endif
38
39extern void debug_printf(const char *, ...);
39#include <sys/cdefs.h>
40
41extern void debug_printf(const char *, ...) __printflike(1, 2);
40extern int debug;
41
42#ifdef DEBUG
43#define dbg(format, args...) debug_printf(format , ## args)
44#else
45#define dbg(format, args...) ((void) 0)
46#endif
47
48#endif /* DEBUG_H */
42extern int debug;
43
44#ifdef DEBUG
45#define dbg(format, args...) debug_printf(format , ## args)
46#else
47#define dbg(format, args...) ((void) 0)
48#endif
49
50#endif /* DEBUG_H */