silk: replace custom assert
silk: replace custom inlining