Runtime check for direct function calls.