welder 0.1.0
Bindings for annotated C++ types, from C++26 reflection
Loading...
Searching...
No Matches
module.hpp
Go to the documentation of this file.
1#pragma once
10#include <fstream> // write the header to an output-path argument
11#include <iostream> // default to stdout
12
14
23#define WELDER_TRAMPOLINES_MAIN(ns) \
24 int main(int argc, char** argv) { \
25 if (argc > 1) { \
26 ::std::ofstream welder_out_{argv[1]}; \
27 ::welder::rods::trampolines::rod::generate<^^ns>(welder_out_); \
28 } else { \
29 ::welder::rods::trampolines::rod::generate<^^ns>(::std::cout); \
30 } \
31 return 0; \
32 }
welder trampoline-generator rod (header-only, text-emitting).