verify in core compressor with swap backend VM_PAGER_COMPRESSOR_WITH_SWAP

C++
echo abc `#open terminal and type in:` \
	 def `#to check VM_PAGER_COMPRESSOR is being used for swap memory. ` \
     ghi `#terminal should return vm.compressor_mode:4. dont type it in.` \
sysctl -a vm.compressor_mode
vm.compressor_mode: 4
Source

Also in C++: