macro_rules! create_get_layer { ($($layer:ident),*) => { ... }; }
create get_layer function
get_layer