slicer: Add SLICER_CHECK_<OP> macros

Makes debugging easier if the inputs to a failing comparison are
logged as well as the failure itself.

The core of the change is in common.{h,cc}. Other files have been
updated with a sed script.

Bug: 202829300
Test: dexter_tests.py
Change-Id: I3fd504ef500fc8ffd9d55f5132064dbe5187d75e
24 files changed
tree: d2a56b9590e5a347105fde998ca2068fd9ece75b
  1. dexter/
  2. slicer/
  3. testdata/
  4. .clang-format
  5. Android.bp
  6. OWNERS
  7. README.md
  8. TEST_MAPPING
README.md

This is the home of the .dex manipulation library (slicer) and command line tool (dexter).

Both the command line tool and the library can be built for host and device targets.

To build dexter:

$ m dexter

To test dexter:

# in tools/dexter (and assuming a Linux host)
$ python dexter/dexter_tests.py -cmd ../../out/host/linux-x86/bin/dexter -root testdata