gen-resources macro, resource definition explicit