Method: RLTK::CG::Module::GlobalCollection#previous

Defined in:
lib/rltk/cg/module.rb

#previous(global) ⇒ GlobalVariable?

Returns Previous global variable in the collection.

Parameters:

  • Global variable you want the predecessor for.

Returns:

  • Previous global variable in the collection.



446
447
448
# File 'lib/rltk/cg/module.rb', line 446

def previous(global)
  if (ptr = Bindings.get_previous_global(global)).null? then nil else GlobalValue.new(ptr) end
end