Sha256: 1756bdedeb5efa2b803df68aac5a72bfb0d9c1e0a27bf4cd888b646079c2db1c

Contents?: true

Size: 993 Bytes

Versions: 13

Compression:

Stored size: 993 Bytes

Contents

/*
 * Copyright (c) 2009 Aman Gupta. All rights reserved.
 * 
 * All rights reserved.
 *
 * This file is part of ruby-ffi.
 *
 * This code is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License version 3 only, as
 * published by the Free Software Foundation.
 *
 * This code is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
 * version 3 for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * version 3 along with this work.  If not, see <http://www.gnu.org/licenses/>.
 */

#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;
}

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/ffi-1.2.0/libtest/BoolTest.c
ffi-1.2.1-x86-mingw32 libtest/BoolTest.c
ffi-1.2.1 libtest/BoolTest.c
ffi-1.2.0-x86-mingw32 libtest/BoolTest.c
ffi-1.2.0 libtest/BoolTest.c
ffi-1.2.0.pre6-x86-mingw32 libtest/BoolTest.c
ffi-1.2.0.pre6 libtest/BoolTest.c
ffi-1.2.0.pre5 libtest/BoolTest.c
ffi-1.2.0.pre4 libtest/BoolTest.c
ffi-1.2.0.pre3-x86-mingw32 libtest/BoolTest.c
ffi-1.2.0.pre3 libtest/BoolTest.c
ffi-1.2.0.pre2-x86-mingw32 libtest/BoolTest.c
ffi-1.2.0.pre2 libtest/BoolTest.c