View source: R/fnPointerUtils.R
isFnPointer | R Documentation |
These functions allow us to determine if a CXType
is a function pointer, and to get the information about the
function pointer type.
isFnPointer(x)
getFnPointerInfo(field, cur = NULL,
toks = if(!is.null(cur))
sapply(children(cur), getCursorTokens),
useCanonical = FALSE)
x |
the |
field |
a |
cur |
the |
toks |
a list of the |
useCanonical |
a logical value controlling whether we use the
canonical type or high-level type.
If this is |
An instance of an S3
class named FunctionPointerInfo
which is a list with two elements:
returnType |
the return type of the function type |
params |
the list of the parameter types of the function type |
Duncan Temple Lang
libclang http://clang.llvm.org/doxygen/group__CINDEX.html
getType
v = getVariables(system.file("exampleCode", "funPointer.c", package = "RCIndex"))
isFnPointer(getType(v$fun))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.