Add require feature in require* macro

Signed-off-by: coldnew <coldnew.tw@gmail.com>