Top Level Namespace

Defined Under Namespace

Modules: Elf, ElfFlags, ElfStructs, Mithril Classes: ElfStructFactory

Instance Method Summary collapse

Instance Method Details

#expect_value(desc, is, should) ⇒ Object

of the best ELF hackers on the block.



6
7
8
9
10
# File 'lib/mithril/parser.rb', line 6

def expect_value(desc,is,should)
  unless $UNSAFE_PARSER
    raise RuntimeError.new "Invalid #{desc}, expected #{should} instead of #{is}" if is != should
  end
end