Sha256: 0fba8ed538d871b3d31675c7750f33f553a3b5cdc9f2b02f9fc797e2f99234db

Contents?: true

Size: 535 Bytes

Versions: 36

Compression:

Stored size: 535 Bytes

Contents

//-*-c++-*-
// Template of a C++ Constructor stub, the function used to convert the
// parameters from Ruby objects to C++, and then call the real C++ constructor.

!function_prototype! {
  !c_class_name!* tmp;
  Data_Get_Struct(self, !c_class_name!, tmp);

  /* The exception is thrown already by ruby2* if not found */

  !function_call!;

  DATA_PTR(self) = tmp;
  !class_ptrmap![self] = tmp;

#ifdef DEBUG
  fprintf(stderr, "rust: creating new instance of !c_class_name! (%p) with value %x\n", tmp, self);
#endif

  return self;
}

Version data entries

36 entries across 36 versions & 2 rubygems

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