2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
liblscp - LinuxSampler Control Protocol API |
liblscp - LinuxSampler Control Protocol API |
5 |
Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2017, rncbc aka Rui Nuno Capela. All rights reserved. |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
8 |
modify it under the terms of the GNU General Public License |
modify it under the terms of the GNU General Public License |
352 |
typedef lscp_midi_instrument_t * midi_instruments; |
typedef lscp_midi_instrument_t * midi_instruments; |
353 |
typedef lscp_midi_instrument_info_t *midi_instrument_info; |
typedef lscp_midi_instrument_info_t *midi_instrument_info; |
354 |
|
|
355 |
#define CLIENT_TEST(p, t, x) { clock_t c; void *v; g_test_count++; \ |
#define CLIENT_TEST(p, t, x) { clock_t c; g_test_count++; \ |
356 |
printf("\n" #x ":\n"); client_test_start(&c); v = (void *) (x); \ |
printf("\n" #x ":\n"); client_test_start(&c); \ |
357 |
printf(" elapsed=%gs errno=%d result='%s...' ret=", \ |
printf(" elapsed=%gs errno=%d result='%s...' ret=", \ |
358 |
client_test_elapsed(&c), \ |
client_test_elapsed(&c), \ |
359 |
lscp_client_get_errno(p), \ |
lscp_client_get_errno(p), \ |
360 |
lscp_client_get_result(p)); \ |
lscp_client_get_result(p)); \ |
361 |
if (client_test_##t((t)(v))) { g_test_fails++; getchar(); } \ |
if (client_test_##t((t)(x))) { g_test_fails++; getchar(); } \ |
362 |
else if (g_test_step) getchar(); } |
else if (g_test_step) getchar(); } |
363 |
|
|
364 |
|
|