fix compilation issue
refactor, rename APIAssert in APIPreconditions