\ifnum\contextmarkmode=4
\def\dostartoverprint% yes... one of the category 'asking for trouble' :D
  {\ctxlua{overprints.enabled=true}}
\def\dostopoverprint%
  {\ctxlua{overprints.enabled=false}}
\fi

\starttext

\starttextoverprint starttextoverprint \stoptextoverprint % fails in both marks
\dostartoverprint dostartoverprint \dostopoverprint % fails in mkiv only
\startoverprint overprint \stopoverprint % fails in mkii only

\stoptext
