extract default size for macro
fix:compile warn:ignoring return value of ‘realpath’, declared with attribute warn_unused_result