summaryrefslogtreecommitdiff
path: root/spec/ffi/fixtures/BoolTest.c
blob: 04cb6c689f078cb94dff2b566f5c7b05333e1943 (plain)
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
/*
 * Copyright (c) 2007 Wayne Meissner.
 * Copyright (c) 2009 Aman Gupta.
 *
 * All rights reserved.
 *
 * For licensing, see LICENSE.SPECS
 */

#include <stdbool.h>

bool
bool_return_true()
{
    return true;
}

bool
bool_return_false()
{
    return false;
}

bool
bool_return_val(bool value)
{
    return value;
}

bool
bool_reverse_val(bool value)
{
    return value ? false : true;
}