(frontend) make macro for main entry point function