register an arithmetic function
| 43 | |
| 44 | // register an arithmetic function |
| 45 | void AR_RegFunc |
| 46 | ( |
| 47 | AR_FuncDesc *func |
| 48 | ) { |
| 49 | char lower_func_name[32]; |
| 50 | size_t lower_func_name_len = 32; |
| 51 | str_tolower_ascii(func->name, lower_func_name, &lower_func_name_len); |
| 52 | int res = raxInsert(__aeRegisteredFuncs, (unsigned char *)lower_func_name, |
| 53 | lower_func_name_len, func, NULL); |
| 54 | ASSERT(res == 1); |
| 55 | } |
| 56 | |
| 57 | inline void AR_SetPrivateDataRoutines |
| 58 | ( |
no test coverage detected