An open API service indexing awesome lists of open source software.

https://github.com/soasis/vargs

Get the ability to use variable argument lists in C++ without requiring the first parameter! Meant to support a WG14 proposal to fix up not having empty argument lists.
https://github.com/soasis/vargs

Last synced: 7 months ago
JSON representation

Get the ability to use variable argument lists in C++ without requiring the first parameter! Meant to support a WG14 proposal to fix up not having empty argument lists.

Awesome Lists containing this project

README

          

# Vargs

> Alright, it's time to commit code crimes for the greater good!

What if you did not need to pass an initial parameter to your C++ `...` functions? What if `va_start` just worked, magically, inside of your system? This library seeks to answer that by recruiting fairly tame code to read and understand specific ISA and ABI conventions to read variable arguments as serialized by Microsoft Visual C++, GNU Compiler Collection, and LLVM/Clang software for C and C++ for x86_32 ("x86"), x86_64 ("amd64"), ARM ("ARM32") and ARM64 ("ARM64").

We do not expect this library to last into the future in any way, shape, or form and hope it can be taken care of by Alex Gilding's [N2854 - Relax Requirements for Variadic Parameters](http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2854.pdf).