ae2f_docs
Loading...
Searching...
No Matches
eval.cc
1#include <ae2f/Keys.h>
2#include <stdio.h>
3
4ae2f_evaldef(
5 template<int a>, <a>
7 , int, Hello, _Hello, char v, v)
8{ return v + a; }
9
10/*
11 * ae2f_evaldef(tmpldef, tmpluse, keyeval, keyexpr, ret_t, nameeval, nameexpr, prmdef, prmuse)
12 */
13
14int main(void) {
15 int a = _Hello<0>(2);
16 void* ae2f_restrict v = ae2f_NIL;
17 printf("%d, %p\n", a, v);
18 return 0;
19}
#define ae2f_constextendedfun
Definition Constexpr.h:43
#define ae2f_constextendedeval
Definition Constexpr.h:46
#define ae2f_NIL
Definition Nil.h:13
#define ae2f_restrict
Keyword as restrict on C99.
Definition cc.h:81