ROHC compression/decompression library
Defines | Functions
test_api_robustness.c File Reference

Test the robustness of the compression API. More...

#include "rohc_comp.h"
#include "rohc_decomp.h"
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <assert.h>
Include dependency graph for test_api_robustness.c:

Defines

#define trace(is_verbose, format,...)
#define CHECK(condition)

Functions

int main (int argc, char *argv[])
 Test the robustness of the compression API.

Detailed Description

Test the robustness of the compression API.

Author:
Didier Barvaux <didier@barvaux.org>

Define Documentation

#define CHECK (   condition)
Value:
do { \
                trace(verbose, "test '%s'\n", #condition); \
                fflush(stdout); \
                assert(condition); \
        } while(0)

Improved assert()

Referenced by main().

#define trace (   is_verbose,
  format,
  ... 
)
Value:
do { \
                if(is_verbose) { \
                        printf(format, ##__VA_ARGS__); \
                } \
        } while(0)

Print trace on stdout only in verbose mode

Referenced by main().


Function Documentation

int main ( int  argc,
char *  argv[] 
)