Sha256: 00e08a8c361d00a6f19faf51b85ce885be36ad152232e823b11238e14b59975c

Contents?: true

Size: 351 Bytes

Versions: 234

Compression:

Stored size: 351 Bytes

Contents

/*
 * Copyright (c) 2007 Wayne Meissner. All rights reserved.
 *
 * For licensing, see LICENSE.SPECS
 */

#if defined(_WIN32) || defined(__WIN32__)
# include <windows.h>
#else
# include <errno.h>
#endif

int setLastError(int error) {
#if defined(_WIN32) || defined(__WIN32__)
    SetLastError(error);
#else
    errno = error;
#endif
    return -1;
}

Version data entries

234 entries across 129 versions & 21 rubygems

Version Path
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/libtest/LastErrorTest.c
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/spec/ffi/fixtures/LastErrorTest.c
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/ffi-1.9.18/libtest/LastErrorTest.c
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/ffi-1.9.18/spec/ffi/fixtures/LastErrorTest.c
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.5.0/gems/ffi-1.9.18/libtest/LastErrorTest.c
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.5.0/gems/ffi-1.9.18/spec/ffi/fixtures/LastErrorTest.c
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/libtest/LastErrorTest.c
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/spec/ffi/fixtures/LastErrorTest.c
ffi-1.9.21-x86-mingw32 spec/ffi/fixtures/LastErrorTest.c
ffi-1.9.21-x86-mingw32 libtest/LastErrorTest.c
ffi-1.9.21-x64-mingw32 spec/ffi/fixtures/LastErrorTest.c
ffi-1.9.21-x64-mingw32 libtest/LastErrorTest.c
ffi-1.9.21 spec/ffi/fixtures/LastErrorTest.c
ffi-1.9.21 libtest/LastErrorTest.c
tdiary-5.0.7 vendor/bundle/gems/ffi-1.9.18/libtest/LastErrorTest.c
tdiary-5.0.7 vendor/bundle/gems/ffi-1.9.18/spec/ffi/fixtures/LastErrorTest.c
comiditaULL-0.1.1 vendor/bundle/ruby/2.3.0/gems/ffi-1.9.18/libtest/LastErrorTest.c
comiditaULL-0.1.1 vendor/bundle/ruby/2.3.0/gems/ffi-1.9.18/spec/ffi/fixtures/LastErrorTest.c
comidita_ull-0.1.1 vendor/bundle/ruby/2.3.0/gems/ffi-1.9.18/libtest/LastErrorTest.c
comidita_ull-0.1.1 vendor/bundle/ruby/2.3.0/gems/ffi-1.9.18/spec/ffi/fixtures/LastErrorTest.c