Sha256: 6e4b857f13d541dd8c96d8eb97e21ca5097265977f62c53e27821315c2c69523

Contents?: true

Size: 1.07 KB

Versions: 36

Compression:

Stored size: 1.07 KB

Contents

//-*-c++-*-
// General template for the unit file (.cc) of the bindings.
// This is the base that's recursively expanded to create the actual
// header file.
//
// Please note that the visibility is set to the Init function only
// if the build processo found it, so that all the other functions
// and types are actually considered hidden, and thus not exported by
// the extension. Unfortunately GCC's libstdc++ does not correctly
// hide all of its symbols yet.

// This is needed here because I need to put the rust_conversions.hh
// include inside these bindings' namespace.
#include <string>

#include "!bindings_name!.hh"

#ifdef DEBUG
#include <stdio.h> /* Used for fprintf */
#endif

namespace Rust_!bindings_name! {

#include <rust_conversions.hh>
#include <rust_checks.hh>

!custom_definition!

!modules_definition!

}

using namespace Rust_!bindings_name!;

extern "C" {

#ifdef HAVE_VISIBILITY
void Init_!bindings_name!() __attribute__((visibility("default")));
#endif

void Init_!bindings_name!() {
!modules_initialization!
!custom_initialization!
} /* Init_!bindings_name! */

}

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
gecoder-with-gecode-1.1.1.1 vendor/rust/rust/templates/BindingsUnit.rusttpl
gecoder-with-gecode-1.1.1 vendor/rust/rust/templates/BindingsUnit.rusttpl
gecoder-1.1.1 vendor/rust/rust/templates/BindingsUnit.rusttpl
gecoder-with-gecode-1.1.0 vendor/rust/rust/templates/BindingsUnit.rusttpl
gecoder-1.1.0 vendor/rust/rust/templates/BindingsUnit.rusttpl
gecoder-with-gecode-0.8.3-mswin32 vendor/rust/rust/templates/BindingsUnit.rusttpl
gecoder-with-gecode-0.8.2-mswin32 vendor/rust/rust/templates/BindingsUnit.rusttpl
gecoder-with-gecode-0.8.1-mswin32 vendor/rust/rust/templates/BindingsUnit.rusttpl
gecoder-with-gecode-0.8.0-mswin32 vendor/rust/rust/templates/BindingsUnit.rusttpl
gecoder-with-gecode-0.7.1-mswin32 vendor/rust/rust/templates/BindingsUnit.rusttpl
gecoder-0.3.0 vendor/rust/rust/templates/BindingsUnit.rusttpl
gecoder-0.2.0 vendor/rust/rust/templates/BindingsUnit.rusttpl
gecoder-0.4.0 vendor/rust/rust/templates/BindingsUnit.rusttpl
gecoder-0.5.0 vendor/rust/rust/templates/BindingsUnit.rusttpl
gecoder-0.7.1 vendor/rust/rust/templates/BindingsUnit.rusttpl
gecoder-0.8.0 vendor/rust/rust/templates/BindingsUnit.rusttpl
gecoder-0.6.1 vendor/rust/rust/templates/BindingsUnit.rusttpl
gecoder-0.6.0 vendor/rust/rust/templates/BindingsUnit.rusttpl
gecoder-0.7.0 vendor/rust/rust/templates/BindingsUnit.rusttpl
gecoder-0.8.1 vendor/rust/rust/templates/BindingsUnit.rusttpl