That same approach, obviously, works for lots of different languages. Not just C. You can even do it at the level of raw algorithms, transforming (for instance) a block cipher implementation that accepts a key as a parameter into one specialized on a specific key and from which the key is (H)ard to extract.