Skip to content

PistonDevelopers/underscore_args

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

underscore_args

Macro for underscore named argumet syntax, aka Dyon.

By naming a function line__color_from_to, one can call it like this:

args!(line(color: [1.0; 4], from: [0.0, 0.0], to: [100.0, 100.0]))
  • Double underscore after function name and before the name of the first argument
  • Single underscore separating arguments

Example

use underscore_args::args;

#[allow(non_snake_case)]
fn line__color_from_to(_color: [f32; 4], _from: [f32; 2], _to: [f32; 2]) {}

args!(line(color: [1.0; 4], from: [0.0, 0.0], to: [100.0, 100.0]));

About

Macro for underscore named argument syntax, aka Dyon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages