File: ffi_yajl.rb [ffi-yajl-1.4.0 Documentation]

Last Modified
  2015-06-12 23:01:48 +0000
Requires
  - ffi_yajl/ext
  - ffi_yajl/ffi
  - ffi_yajl/ffi
  - ffi_yajl/ffi
  - ffi_yajl/ext
  - ffi_yajl/ffi

## Description

Precedence:

- The FORCE_FFI_YAJL env var takes precedence over everything else, the user theoretically knows best

- Java always gets ffi because jruby only supports ffi

- There is a conflict between loading libyajl 1.x and 2.x in the same VM process (on a fundamental basis, simply guru medidate about how the c-symbols work if you load both libs). For some reason the ffi interface seems to work fine sometimes (i'm not sure how) so we fall back to that-- this is much more likely to be converted into a raise than to have the warn dropped, so don't bother asking for that.

- Then we try the c-ext and rescue into ffi that fails