library(RCIndex)
f = getFunctions(system.file("exampleCode", "funPointer.c", package = "RCIndex"))$foo
h = f@params[[1]]
getTypeKind(h) # Typedef
ty = getCanonicalType(h)
getTypeKind(ty) # Pointer
pty = getPointeeType(ty)
getTypeKind(pty) # FunctionProto
# This is a type. We need the cursor.
cur = getTypeDeclaration(pty) # invalid type
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.