 @@{
 rtcIntersect(EXPR scene, EXPR ray);
 =>
-RTCIntersectContext context;
-rtcInitIntersectionContext(&context);
-rtcIntersect1(scene,&context,&ray);
+{
+  RTCIntersectContext context;
+  rtcInitIntersectionContext(&context);
+  rtcIntersect1(scene,&context,&ray);
+}
 }@@
 
 @@{

@@{
rtcIntersect8(EXPR valid,EXPR scene,EXPR ray);
=>
RTCIntersectContext context;
rtcInitIntersectionContext(&context);
rtcIntersect8(valid,scene,&context,&ray);
}@@

@@{

@@{
rtcOccluded(EXPR scene,EXPR ray);
=>
{
  RTCIntersectContext context;
  rtcInitIntersectionContext(&context);
  rtcOccluded1(scene,&context,&ray);
}
}@@

@@{
