As far as I can tell, Apple's Core Graphic engine is in fact an implementation (in C) of Postcript. Warnock's legacy is truly foundational.
With Display Postscript you could type in real Postscript commands into your C/Objective-C source file and it was pre-processed into actual code.
defineps PSWGrayCircle( )
newpath
10.0 10.0 5.0 0.0 360.0 arc
closepath
0.5 setgray
fill
endps
And it could be called just like any other function, including with parameters.