| 16 | rax *__aeRegisteredFuncs = NULL; |
| 17 | |
| 18 | AR_FuncDesc *AR_FuncDescNew |
| 19 | ( |
| 20 | const char *name, |
| 21 | AR_Func func, |
| 22 | uint min_argc, |
| 23 | uint max_argc, |
| 24 | SIType *types, |
| 25 | SIType ret_type, |
| 26 | bool internal, |
| 27 | bool reducible |
| 28 | ) { |
| 29 | AR_FuncDesc *desc = rm_calloc(1, sizeof(AR_FuncDesc)); |
| 30 | |
| 31 | desc->name = name; |
| 32 | desc->func = func; |
| 33 | desc->types = types; |
| 34 | desc->ret_type = ret_type; |
| 35 | desc->min_argc = min_argc; |
| 36 | desc->max_argc = max_argc; |
| 37 | desc->internal = internal; |
| 38 | desc->aggregate = false; |
| 39 | desc->reducible = reducible; |
| 40 | |
| 41 | return desc; |
| 42 | } |
| 43 | |
| 44 | // register an arithmetic function |
| 45 | void AR_RegFunc |
no test coverage detected