Skip to content

OMGasm/cursed-switch-macro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cursed-switch-macro

Slightly cursed declaritive macro for adding* C style macros to Rust

switch(n) {
  case 1: something;
  case 2: something_else;
  default: probably_nothing;
}

Notes

Yes, this is broken(specifically in the case of handling multiple cases without a default)
* within limitations of Rust's macro system and how I "want" to use it

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages