taco-db  0.1.0
builtin_funcs.h
Go to the documentation of this file.
1 #ifndef UTILS_BUILTIN_FUNCS_H
2 #define UTILS_BUILTIN_FUNCS_H
3 
4 #include "tdb.h"
5 
6 namespace taco {
7 
8 
35 #define BUILTIN_RETTYPE(...)
36 #define BUILTIN_FUNC(func_name, ...) \
37  ::taco::Datum func_name (FMGR_FUNCTION_ARGS)
38 #define BUILTIN_ARGTYPE(...)
39 #define BUILTIN_OPR(...)
40 
46 
55 
56 } // namespace taco
57 
58 #endif // UTILS_BUILTIN_FUNCS_H
Definition: datum.h:28
uint32_t Oid
Definition: tdb_base.h:210
FunctionInfo FindBuiltinFunction(Oid oid)
Looks up the callable function info for a built-in function registered in the system catalog.
Definition: builtin_funcs.cpp:23
void InitBuiltinFunctions()
Initializes the lookup table for built-in functions registered in the system catalog.
Definition: builtin_funcs.cpp:14
std::function< Datum(FunctionCallInfo &)> FunctionInfo
An FMGR managed function should be declared as.
Definition: fmgr.h:50