Added helper function to create a pointer constant.