eĿlipsis
a language independent preprocessor
 
Loading...
Searching...
No Matches
Fibonacci.h File Reference

Compute Fibonacci numbers by recursive inclusion. More...

Go to the source code of this file.

Functions

constexpr __EXPAND_DEC_U__ (-1U) Fibonacci[__NARGS__(FIBONACCI())]
 

Detailed Description

Compute Fibonacci numbers by recursive inclusion.

This shows how real recursive inclusion can be easily with tools like gather and move, and by evaluating expressions by means of expand and __EXPAND_DEC_U__ (expand, decimal, unsigned).

See the source code by following the link above and the result in a compact view by simply launching

ellipsis Fibonacci.h

If you want to see how the compiler would see a file preprocess by ellipsis-gnuc.sh

ellipsis-gnuc.sh -E Fibonacci.h

The output here is annotated by directives with the source line number. Here, since most of the numbers come from the same source line this just resets the current line number to that same number again and again.

Function Documentation

◆ __EXPAND_DEC_U__()

constexpr __EXPAND_DEC_U__ ( 1U)
constexpr