Add misc macros __save() and __res()

Signed-off-by: Vladislav Levenetz <octal.s@gmail.com>