Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clamp

Macro to clamp a value between two other values

Installation

$ clib install littlstar/clamp --save

Usage

int value = 5;
value = clamp(value 0, 4);
assert(4 == value);

License

MIT

About

Macro to clamp a value between two other values

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages