File: common.h

package info (click to toggle)
libdrizzle 0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,912 kB
  • ctags: 1,679
  • sloc: sh: 10,872; ansic: 9,362; python: 1,388; makefile: 178
file content (35 lines) | stat: -rw-r--r-- 689 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * Drizzle Client & Protocol Library
 *
 * Copyright (C) 2008 Eric Day (eday@oddments.org)
 * All rights reserved.
 *
 * Use and distribution licensed under the BSD license.  See
 * the COPYING file in this directory for full text.
 */

/**
 * @file
 * @brief Includes and macros for tests
 */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include <libdrizzle/drizzle_client.h>
#include <libdrizzle/drizzle_server.h>

#define drizzle_test(...) do \
{ \
  printf(__VA_ARGS__); \
  printf("\n"); \
} while (0);

#define drizzle_test_error(...) do \
{ \
  printf("*** %s:%d *** ", __FILE__, __LINE__); \
  printf(__VA_ARGS__); \
  printf("\n"); \
  exit(1); \
} while (0);