lib/rust_require/c_wrapper_generator.rb
# Generates wrapper fns for fn_headers and submodules in mod (String)
# submod_string is mods path eg. "mod::submod::"
Generates wrapper fns for fn_headers and submodules in mod (String)
submod_string is mods path eg.
Generates wrapper fns for fn_headers and submodules in mod ( String ) submod_string is mods path eg .
def generate_mod_wrapper(mod,submod_string)
      w = mod['submodules'].map do |x|
        generate_mod_wrapper(x,submod_string+x['name']+'::')
      end.join("\n")
      w << generate_fns(mod['fn_headers'], submod_string)
    end
def generate_mod_wrapper ( mod , submod_string ) w = mod [ 'submodules' ] . map do | x | generate_mod_wrapper ( x , submod_string + x [ 'name' ] + '::' ) end . join ( "\n" ) w << generate_fns ( mod [ 'fn_headers' ] , submod_string ) end
Generates wrapper fns for fn_headers and submodules in mod (String)
submod_string is mods path eg.
Generates wrapper fns for fn_headers and submodules in mod ( String ) submod_string is mods path eg .
mod
<not_specific>
submod_string
<not_specific>