Sha256: 5bb91d4ef84b5d0fd8043c19a2f99dcb4a2bf8794f6bdecd1626e919665aa4da
Contents?: true
Size: 688 Bytes
Versions: 16
Compression:
Stored size: 688 Bytes
Contents
#include <leatherman/ruby/api.hpp> using namespace std; namespace lth_lib = leatherman::dynamic_library; namespace leatherman { namespace ruby { lth_lib::dynamic_library api::find_loaded_library() { // Ruby DLL's follow a pattern of // ruby.dll, libruby.dll, ruby210.dll, libruby210.dll // msvcrt-ruby193.dll, x64-msvcrt-ruby210.dll, etc // To avoid detecting leatherman_ruby.dll as a Ruby DLL, look for // anything except an underscore. const string libruby_pattern = "^[^_]*ruby(\\d)?(\\d)?(\\d)?\\.dll$"; return lth_lib::dynamic_library::find_by_pattern(libruby_pattern); } }} // namespace leatherman::ruby
Version data entries
16 entries across 16 versions & 2 rubygems