org-babel-when-in-src-block

org-babel-when-in-src-block is a Lisp macro in `ob-core.el'.

(org-babel-when-in-src-block &rest BODY)

Execute BODY if point is in a source block and return t.

Otherwise do nothing and return nil.