Sha256: f737282f511bc8d677818bacd5b80226b816041076cf3e1a281708a8ab4b6643

Contents?: true

Size: 357 Bytes

Versions: 12

Compression:

Stored size: 357 Bytes

Contents

extern "C" {
#include <ruby.h>
// like extern void init_dense_ruby_to_ruby_;
<% init_funcs.each do |func| %>
  <%=  "extern void #{func}();" %>
<% end %>

void Init_google_hash() {
  
<% init_funcs.each do |func| %>
  <%=  func %>();
<% end %>
  
  rb_eval_string("::GoogleHash = ::GoogleHashDenseRubyToRuby"); // give a default
 }
 
}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
google_hash-0.9.0 ext/template/main.cpp.erb
google_hash-0.8.9 ext/template/main.cpp.erb
google_hash-0.8.8 ext/template/main.cpp.erb
google_hash-0.8.7 ext/template/main.cpp.erb
google_hash-0.8.6 ext/template/main.cpp.erb
google_hash-0.8.5 ext/template/main.cpp.erb
google_hash-0.8.4 ext/template/main.cpp.erb
google_hash-0.8.3 ext/template/main.cpp.erb
google_hash-0.8.2 ext/template/main.cpp.erb
google_hash-0.8.1 ext/template/main.cpp.erb
google_hash-0.8.0 ext/template/main.cpp.erb
google_hash-0.7.0 ext/template/main.cpp.erb