<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>examples/gles/shaders/ch8-simple-vertexshader.fs</filename>
    </added>
    <added>
      <filename>examples/gles/shaders/ch8-simple-vertexshader.vs</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,83 +1,16 @@
 //load common code.
-load(&quot;common.js&quot;);
+load(&quot;common.js&quot;, &quot;shaderutil.js&quot;);
 
 //start custom code.
 var angle = 0;
-var vertex_shader = &quot;uniform mat4 u_mvpMatrix;\n&quot;
-					+ &quot;attribute vec4 a_position;\n&quot;
-					+ &quot;void main()\n&quot;
-					+ &quot;{\n&quot;
-					+ &quot;gl_Position = u_mvpMatrix * a_position;\n&quot;
-					+ &quot;}\n&quot;;
-
-var fragment_shader = &quot;void main()\n&quot;
-					+ &quot;{\n&quot;
-					+ &quot;gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);\n&quot;
-					+ &quot;}\n&quot;;
 
 // an object we'll use to store shaders, textures, etc. on as we create them
 var userData = {};
 
-function loadShader(shaderType, shaderSource) {
-    // Create the shader object
-    var shader = Gles.createShader(shaderType);
-    if (shader == 0) return 0;
-
-    // Load the shader source
-    Gles.shaderSource(shader, shaderSource);
-
-    // Compile the shader
-    Gles.compileShader(shader);
-
-    // Check the compile status
-    var compiled = Gles.getShaderiv(shader, Gles.COMPILE_STATUS);
-    if (!compiled) {
-		// Something went wrong during compilation; get the error
-		var error = Gles.getShaderInfoLog(shader);
-		Gles.deleteShader(shader);
-		return 0;
-    }
-
-    return shader;
-}
-
-// Convenience function to create a program from all the passed-in
-function getProgram() {
-    var shaders = [];
-
-    // first load and compile all the passed-in shaders.
-    for (var i = 0; i &lt; arguments.length; i+=2) {
-	    var type = arguments[i], source = arguments[i+1];
-		var shader = loadShader(type, source);
-		if (shader == 0)
-		    return 0;
-		shaders.push(shader);
-    }
-
-    // then do the program object creation
-    var program = Gles.createProgram();
-    if (program == 0)
-	return 0;
-
-    // attach all the shaders
-    for (var i = 0; i &lt; shaders.length; i++) {
-      Gles.attachShader(program, shaders[i]);
-    }
-
-    // link, and check for errors
-    Gles.linkProgram(program);
-
-    var linked = Gles.getProgramiv(program, Gles.LINK_STATUS);
-    if (!linked) {
-    	var error = Gles.getProgramInfoLog(program);
-    	return 0;
-    }
-
-    return program;
-}
-
 function init() {
-	userData.programObject = getProgram(Gles.VERTEX_SHADER, vertex_shader, Gles.FRAGMENT_SHADER, fragment_shader);
+	userData.programObject = getProgram(&quot;shaders/ch8-simple-vertexshader.vs&quot;, 
+	                                    &quot;shaders/ch8-simple-vertexshader.fs&quot;);
+	
 	if(userData.programObject == 0) return false;
 	
 	userData.positionLoc = Gles.getAttribLocation(userData.programObject, &quot;a_position&quot;);
@@ -102,7 +35,7 @@ function updateObjects() {
     modelview.translate(0, 0, -2);
 
     // then rotating the cube
-    modelview.rotate(angle, 1, 0, 1);
+    modelview.rotate(angle, 1, 1, 1);
 
     userData.mvpMatrix = modelview.multiply(persp);
 }
@@ -113,7 +46,7 @@ function update() {
 	angle += 2.0;
 	if (angle &gt; 360) angle -= 360;
 	updateObjects();
-    Glut.postRedisplay();
+  Glut.postRedisplay();
 	Glut.timerFunc(25, update, 0);
 }
 
@@ -136,6 +69,7 @@ function draw() {
     Gles.uniformMatrix4fv(userData.mvpLoc, userData.mvpMatrix.elements.length, Gles.FALSE, userData.mvpMatrix.elements);
 
     // Draw the cube
+    //Gles.drawArrays(Gles.TRIANGLE_FAN, 0, userData.obj.vertices.length);
     Gles.drawElements(Gles.TRIANGLES, userData.obj.indices.length, Gles.UNSIGNED_SHORT, userData.obj.indices);
 
     // Finally do the swap to display what we just drew
@@ -151,7 +85,7 @@ function main() {
 	Glut.createWindow(&quot;OpenGL ES on V8!  (^_^)/&quot;);
 	
     if (!init())
-	return;
+      return;
     
     updateObjects();
 	//Set drawing callback</diff>
      <filename>examples/gles/ch8-simple-vertexshader.js</filename>
    </modified>
    <modified>
      <diff>@@ -1,243 +1,5 @@
-//adding matrix 4x4 library
-/*
- * Copyright (c) 2009, Mozilla Corp
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *     * Redistributions of source code must retain the above copyright
- *       notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above copyright
- *       notice, this list of conditions and the following disclaimer in the
- *       documentation and/or other materials provided with the distribution.
- *     * Neither the name of the &lt;organization&gt; nor the
- *       names of its contributors may be used to endorse or promote products
- *       derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY &lt;copyright holder&gt; ''AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL &lt;copyright holder&gt; BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
- * Based on sample code from the OpenGL(R) ES 2.0 Programming Guide, which carriers
- * the following header:
- *
- * Book:      OpenGL(R) ES 2.0 Programming Guide
- * Authors:   Aaftab Munshi, Dan Ginsburg, Dave Shreiner
- * ISBN-10:   0321502795
- * ISBN-13:   9780321502797
- * Publisher: Addison-Wesley Professional
- * URLs:      http://safari.informit.com/9780321563835
- *            http://www.opengles-book.com
- */
-
-//
-// A simple 4x4 Matrix utility class
-//
-
-function Matrix4x4() {
-  this.elements = Array(16);
-  this.loadIdentity();
-}
-
-Matrix4x4.prototype = {
-  scale: function (sx, sy, sz) {
-    this.elements[0*4+0] *= sx;
-    this.elements[0*4+1] *= sx;
-    this.elements[0*4+2] *= sx;
-    this.elements[0*4+3] *= sx;
-
-    this.elements[1*4+0] *= sy;
-    this.elements[1*4+1] *= sy;
-    this.elements[1*4+2] *= sy;
-    this.elements[1*4+3] *= sy;
-
-    this.elements[2*4+0] *= sz;
-    this.elements[2*4+1] *= sz;
-    this.elements[2*4+2] *= sz;
-    this.elements[2*4+3] *= sz;
-
-    return this;
-  },
-
-  translate: function (tx, ty, tz) {
-    this.elements[3*4+0] += this.elements[0*4+0] * tx + this.elements[1*4+0] * ty + this.elements[2*4+0] * tz;
-    this.elements[3*4+1] += this.elements[0*4+1] * tx + this.elements[1*4+1] * ty + this.elements[2*4+1] * tz;
-    this.elements[3*4+2] += this.elements[0*4+2] * tx + this.elements[1*4+2] * ty + this.elements[2*4+2] * tz;
-    this.elements[3*4+3] += this.elements[0*4+3] * tx + this.elements[1*4+3] * ty + this.elements[2*4+3] * tz;
-
-    return this;
-  },
-
-  rotate: function (angle, x, y, z) {
-    var mag = Math.sqrt(x*x + y*y + z*z);
-    var sinAngle = Math.sin(angle * Math.PI / 180.0);
-    var cosAngle = Math.cos(angle * Math.PI / 180.0);
-
-    if (mag &gt; 0) {
-      var xx, yy, zz, xy, yz, zx, xs, ys, zs;
-      var oneMinusCos;
-      var rotMat;
-
-      x /= mag;
-      y /= mag;
-      z /= mag;
-
-      xx = x * x;
-      yy = y * y;
-      zz = z * z;
-      xy = x * y;
-      yz = y * z;
-      zx = z * x;
-      xs = x * sinAngle;
-      ys = y * sinAngle;
-      zs = z * sinAngle;
-      oneMinusCos = 1.0 - cosAngle;
-
-      rotMat = new Matrix4x4();
-
-      rotMat.elements[0*4+0] = (oneMinusCos * xx) + cosAngle;
-      rotMat.elements[0*4+1] = (oneMinusCos * xy) - zs;
-      rotMat.elements[0*4+2] = (oneMinusCos * zx) + ys;
-      rotMat.elements[0*4+3] = 0.0;
-
-      rotMat.elements[1*4+0] = (oneMinusCos * xy) + zs;
-      rotMat.elements[1*4+1] = (oneMinusCos * yy) + cosAngle;
-      rotMat.elements[1*4+2] = (oneMinusCos * yz) - xs;
-      rotMat.elements[1*4+3] = 0.0;
-
-      rotMat.elements[2*4+0] = (oneMinusCos * zx) - ys;
-      rotMat.elements[2*4+1] = (oneMinusCos * yz) + xs;
-      rotMat.elements[2*4+2] = (oneMinusCos * zz) + cosAngle;
-      rotMat.elements[2*4+3] = 0.0;
-
-      rotMat.elements[3*4+0] = 0.0;
-      rotMat.elements[3*4+1] = 0.0;
-      rotMat.elements[3*4+2] = 0.0;
-      rotMat.elements[3*4+3] = 1.0;
-
-      rotMat = rotMat.multiply(this);
-      this.elements = rotMat.elements;
-    }
-
-    return this;
-  },
-
-  frustum: function (left, right, bottom, top, nearZ, farZ) {
-    var deltaX = right - left;
-    var deltaY = top - bottom;
-    var deltaZ = farZ - nearZ;
-    var frust;
-
-    if ( (nearZ &lt;= 0.0) || (farZ &lt;= 0.0) ||
-         (deltaX &lt;= 0.0) || (deltaY &lt;= 0.0) || (deltaZ &lt;= 0.0) )
-         return this;
-
-    frust = new Matrix4x4();
-
-    frust.elements[0*4+0] = 2.0 * nearZ / deltaX;
-    frust.elements[0*4+1] = frust.elements[0*4+2] = frust.elements[0*4+3] = 0.0;
-
-    frust.elements[1*4+1] = 2.0 * nearZ / deltaY;
-    frust.elements[1*4+0] = frust.elements[1*4+2] = frust.elements[1*4+3] = 0.0;
-
-    frust.elements[2*4+0] = (right + left) / deltaX;
-    frust.elements[2*4+1] = (top + bottom) / deltaY;
-    frust.elements[2*4+2] = -(nearZ + farZ) / deltaZ;
-    frust.elements[2*4+3] = -1.0;
-
-    frust.elements[3*4+2] = -2.0 * nearZ * farZ / deltaZ;
-    frust.elements[3*4+0] = frust.elements[3*4+1] = frust.elements[3*4+3] = 0.0;
-
-    frust = frust.multiply(this);
-    this.elements = frust.elements;
-
-    return this;
-  },
-
-  perspective: function (fovy, aspect, nearZ, farZ) {
-    var frustumH = Math.tan(fovy / 360.0 * Math.PI) * nearZ;
-    var frustumW = frustumH * aspect;
-
-    return this.frustum(-frustumW, frustumW, -frustumH, frustumH, nearZ, farZ);
-  },
-
-  ortho: function (left, right, bottom, top, nearZ, farZ) {
-    var deltaX = right - left;
-    var deltaY = top - bottom;
-    var deltaZ = farZ - nearZ;
-
-    var ortho = new Matrix4x4();
-
-    if ( (deltaX == 0.0) || (deltaY == 0.0) || (deltaZ == 0.0) )
-        return this;
-
-    ortho.elements[0*4+0] = 2.0 / deltaX;
-    ortho.elements[3*4+0] = -(right + left) / deltaX;
-    ortho.elements[1*4+1] = 2.0 / deltaY;
-    ortho.elements[3*4+1] = -(top + bottom) / deltaY;
-    ortho.elements[2*4+2] = -2.0 / deltaZ;
-    ortho.elements[3*4+2] = -(nearZ + farZ) / deltaZ;
-
-    ortho = ortho.multiply(this);
-    this.elements = ortho.elements;
-
-    return this;
-  },
-
-  multiply: function (right) {
-    var tmp = new Matrix4x4();
-
-    for (var i = 0; i &lt; 4; i++) {
-      tmp.elements[i*4+0] =
-  (this.elements[i*4+0] * right.elements[0*4+0]) +
-  (this.elements[i*4+1] * right.elements[1*4+0]) +
-  (this.elements[i*4+2] * right.elements[2*4+0]) +
-  (this.elements[i*4+3] * right.elements[3*4+0]) ;
-
-      tmp.elements[i*4+1] =
-  (this.elements[i*4+0] * right.elements[0*4+1]) +
-  (this.elements[i*4+1] * right.elements[1*4+1]) +
-  (this.elements[i*4+2] * right.elements[2*4+1]) +
-  (this.elements[i*4+3] * right.elements[3*4+1]) ;
-
-      tmp.elements[i*4+2] =
-  (this.elements[i*4+0] * right.elements[0*4+2]) +
-  (this.elements[i*4+1] * right.elements[1*4+2]) +
-  (this.elements[i*4+2] * right.elements[2*4+2]) +
-  (this.elements[i*4+3] * right.elements[3*4+2]) ;
-
-      tmp.elements[i*4+3] =
-  (this.elements[i*4+0] * right.elements[0*4+3]) +
-  (this.elements[i*4+1] * right.elements[1*4+3]) +
-  (this.elements[i*4+2] * right.elements[2*4+3]) +
-  (this.elements[i*4+3] * right.elements[3*4+3]) ;
-    }
-
-    this.elements = tmp.elements;
-    return this;
-  },
-
-  loadIdentity: function () {
-    for (var i = 0; i &lt; 16; i++)
-      this.elements[i] = 0;
-    this.elements[0*4+0] = 1.0;
-    this.elements[1*4+1] = 1.0;
-    this.elements[2*4+2] = 1.0;
-    this.elements[3*4+3] = 1.0;
-    return this;
-  }
-};
+load(&quot;lib/matrix.js&quot;);
 
-//adding a simple shape library
 /*
  * Copyright (c) 2009, Mozilla Corp
  * All rights reserved.</diff>
      <filename>examples/gles/common.js</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,7 @@
   
   Dependencies:
   
-  core.js, v3d.js
+  core.js
   
   Author: 
   
@@ -50,7 +50,7 @@ var MetaBalls = new Class({
     for(var i=0; i &lt; count; i++) {
       //add metaobject
       b.push({
-        'pos': new V3D,
+        'pos': { 'x':0, 'y':0, 'z':0 },
         'a': 0,
         'b': 0
       });
@@ -151,3 +151,40 @@ var MetaGrid = new Class({
   }
 
 });
+
+function rgba(redval, greenval, blueval, alphaval) {
+  return ((alphaval &lt;&lt; 24) | (redval &lt;&lt; 16) | (greenval &lt;&lt; 8) | blueval); 
+}
+
+function gridColor(gp) {
+  var maxval = 2.0 * gp.value - 1.0;
+  
+  if (maxval &gt; 1.0)
+    maxval = 1.0;
+  
+  var metacolor = rgba(196, 64 + ((192.0 * (1.0 - maxval)) &gt;&gt; 0), 0, 0);
+  
+  if (gp.flags &amp; Config.GP_TYPE_META) {
+    if (gp.flags &amp; Config.GP_TYPE_BORDER)
+      return {
+        'color': ((metacolor &amp; 0xfefefefe) &gt;&gt; 1) + rgba(0, 64, 92, 0),
+        'maxval': maxval
+      };
+    else
+      return {
+        'color': metacolor,
+        'maxval': maxval
+      };
+  } else {
+    if (gp.flags &amp; Config.GP_TYPE_BORDER)
+      return {
+        'color': rgba(0, 128, 196, 0),
+        'maxval': maxval
+      };
+    else
+      return {
+        'color': rgba(128, 228, 128, 0),
+        'maxval': maxval
+      };
+  }
+}</diff>
      <filename>examples/gles/metaballs/metaballs.js</filename>
    </modified>
    <modified>
      <diff>@@ -18,8 +18,6 @@ Persistent&lt;Object&gt; GlFactory::self_;
 Handle&lt;Value&gt; GLglAccumCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -36,8 +34,6 @@ Handle&lt;Value&gt; GLglAccumCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglAlphaFuncCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -54,8 +50,6 @@ Handle&lt;Value&gt; GLglAlphaFuncCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglAreTexturesResidentCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -89,8 +83,6 @@ Handle&lt;Value&gt; GLglAreTexturesResidentCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglArrayElementCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -106,8 +98,6 @@ Handle&lt;Value&gt; GLglArrayElementCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglBeginCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -123,8 +113,6 @@ Handle&lt;Value&gt; GLglBeginCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglBindTextureCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   unsigned int arg1 = args[1]-&gt;Uint32Value();
@@ -141,8 +129,6 @@ Handle&lt;Value&gt; GLglBindTextureCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglBitmapCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 7) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -173,8 +159,6 @@ Handle&lt;Value&gt; GLglBitmapCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglBlendColorCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -193,8 +177,6 @@ Handle&lt;Value&gt; GLglBlendColorCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglBlendEquationCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -210,8 +192,6 @@ Handle&lt;Value&gt; GLglBlendEquationCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglBlendEquationSeparateCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -228,8 +208,6 @@ Handle&lt;Value&gt; GLglBlendEquationSeparateCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglBlendFuncCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -246,8 +224,6 @@ Handle&lt;Value&gt; GLglBlendFuncCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglCallListCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -263,8 +239,6 @@ Handle&lt;Value&gt; GLglCallListCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglClearCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -280,8 +254,6 @@ Handle&lt;Value&gt; GLglClearCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglClearAccumCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -300,8 +272,6 @@ Handle&lt;Value&gt; GLglClearAccumCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglClearColorCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -320,8 +290,6 @@ Handle&lt;Value&gt; GLglClearColorCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglClearDepthCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
 
@@ -337,8 +305,6 @@ Handle&lt;Value&gt; GLglClearDepthCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglClearIndexCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
 
@@ -354,8 +320,6 @@ Handle&lt;Value&gt; GLglClearIndexCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglClearStencilCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -371,8 +335,6 @@ Handle&lt;Value&gt; GLglClearStencilCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglClipPlaneCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -398,8 +360,6 @@ Handle&lt;Value&gt; GLglClipPlaneCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor3bCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -417,8 +377,6 @@ Handle&lt;Value&gt; GLglColor3bCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor3bvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -443,8 +401,6 @@ Handle&lt;Value&gt; GLglColor3bvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor3dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -462,8 +418,6 @@ Handle&lt;Value&gt; GLglColor3dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor3dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -488,8 +442,6 @@ Handle&lt;Value&gt; GLglColor3dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor3fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -507,8 +459,6 @@ Handle&lt;Value&gt; GLglColor3fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor3fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -533,8 +483,6 @@ Handle&lt;Value&gt; GLglColor3fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor3iCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -552,8 +500,6 @@ Handle&lt;Value&gt; GLglColor3iCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor3ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -578,8 +524,6 @@ Handle&lt;Value&gt; GLglColor3ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor3sCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -597,8 +541,6 @@ Handle&lt;Value&gt; GLglColor3sCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor3svCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -623,8 +565,6 @@ Handle&lt;Value&gt; GLglColor3svCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor3ubCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   unsigned int arg1 = args[1]-&gt;Uint32Value();
@@ -642,8 +582,6 @@ Handle&lt;Value&gt; GLglColor3ubCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor3ubvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -668,8 +606,6 @@ Handle&lt;Value&gt; GLglColor3ubvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor3uiCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   unsigned int arg1 = args[1]-&gt;Uint32Value();
@@ -687,8 +623,6 @@ Handle&lt;Value&gt; GLglColor3uiCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor3uivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -713,8 +647,6 @@ Handle&lt;Value&gt; GLglColor3uivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor3usCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   unsigned int arg1 = args[1]-&gt;Uint32Value();
@@ -732,8 +664,6 @@ Handle&lt;Value&gt; GLglColor3usCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor3usvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -758,8 +688,6 @@ Handle&lt;Value&gt; GLglColor3usvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor4bCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -778,8 +706,6 @@ Handle&lt;Value&gt; GLglColor4bCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor4bvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -804,8 +730,6 @@ Handle&lt;Value&gt; GLglColor4bvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor4dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -824,8 +748,6 @@ Handle&lt;Value&gt; GLglColor4dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor4dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -850,8 +772,6 @@ Handle&lt;Value&gt; GLglColor4dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor4fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -870,8 +790,6 @@ Handle&lt;Value&gt; GLglColor4fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor4fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -896,8 +814,6 @@ Handle&lt;Value&gt; GLglColor4fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor4iCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -916,8 +832,6 @@ Handle&lt;Value&gt; GLglColor4iCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor4ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -942,8 +856,6 @@ Handle&lt;Value&gt; GLglColor4ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor4sCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -962,8 +874,6 @@ Handle&lt;Value&gt; GLglColor4sCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor4svCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -988,8 +898,6 @@ Handle&lt;Value&gt; GLglColor4svCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor4ubCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   unsigned int arg1 = args[1]-&gt;Uint32Value();
@@ -1008,8 +916,6 @@ Handle&lt;Value&gt; GLglColor4ubCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor4ubvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -1034,8 +940,6 @@ Handle&lt;Value&gt; GLglColor4ubvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor4uiCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   unsigned int arg1 = args[1]-&gt;Uint32Value();
@@ -1054,8 +958,6 @@ Handle&lt;Value&gt; GLglColor4uiCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor4uivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -1080,8 +982,6 @@ Handle&lt;Value&gt; GLglColor4uivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor4usCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   unsigned int arg1 = args[1]-&gt;Uint32Value();
@@ -1100,8 +1000,6 @@ Handle&lt;Value&gt; GLglColor4usCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColor4usvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -1126,8 +1024,6 @@ Handle&lt;Value&gt; GLglColor4usvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColorMaskCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   unsigned int arg1 = args[1]-&gt;Uint32Value();
@@ -1146,8 +1042,6 @@ Handle&lt;Value&gt; GLglColorMaskCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColorMaterialCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1164,8 +1058,6 @@ Handle&lt;Value&gt; GLglColorMaterialCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColorTableParameterfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1192,8 +1084,6 @@ Handle&lt;Value&gt; GLglColorTableParameterfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglColorTableParameterivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1220,8 +1110,6 @@ Handle&lt;Value&gt; GLglColorTableParameterivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglConvolutionParameterfCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1239,8 +1127,6 @@ Handle&lt;Value&gt; GLglConvolutionParameterfCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglConvolutionParameterfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1267,8 +1153,6 @@ Handle&lt;Value&gt; GLglConvolutionParameterfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglConvolutionParameteriCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1286,8 +1170,6 @@ Handle&lt;Value&gt; GLglConvolutionParameteriCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglConvolutionParameterivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1314,8 +1196,6 @@ Handle&lt;Value&gt; GLglConvolutionParameterivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglCopyColorSubTableCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 5) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1335,8 +1215,6 @@ Handle&lt;Value&gt; GLglCopyColorSubTableCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglCopyColorTableCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 5) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1356,8 +1234,6 @@ Handle&lt;Value&gt; GLglCopyColorTableCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglCopyConvolutionFilter1DCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 5) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1377,8 +1253,6 @@ Handle&lt;Value&gt; GLglCopyConvolutionFilter1DCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglCopyConvolutionFilter2DCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 6) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1399,8 +1273,6 @@ Handle&lt;Value&gt; GLglCopyConvolutionFilter2DCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglCopyPixelsCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 5) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1420,8 +1292,6 @@ Handle&lt;Value&gt; GLglCopyPixelsCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglCopyTexImage1DCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 7) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1443,8 +1313,6 @@ Handle&lt;Value&gt; GLglCopyTexImage1DCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglCopyTexImage2DCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 8) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1467,8 +1335,6 @@ Handle&lt;Value&gt; GLglCopyTexImage2DCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglCopyTexSubImage1DCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 6) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1489,8 +1355,6 @@ Handle&lt;Value&gt; GLglCopyTexSubImage1DCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglCopyTexSubImage2DCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 8) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1513,8 +1377,6 @@ Handle&lt;Value&gt; GLglCopyTexSubImage2DCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglCopyTexSubImage3DCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 9) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1538,8 +1400,6 @@ Handle&lt;Value&gt; GLglCopyTexSubImage3DCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglCullFaceCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -1555,8 +1415,6 @@ Handle&lt;Value&gt; GLglCullFaceCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglDeleteListsCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1573,8 +1431,6 @@ Handle&lt;Value&gt; GLglDeleteListsCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglDeleteTexturesCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -1600,8 +1456,6 @@ Handle&lt;Value&gt; GLglDeleteTexturesCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglDepthFuncCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -1617,8 +1471,6 @@ Handle&lt;Value&gt; GLglDepthFuncCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglDepthMaskCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -1634,8 +1486,6 @@ Handle&lt;Value&gt; GLglDepthMaskCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglDepthRangeCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -1652,8 +1502,6 @@ Handle&lt;Value&gt; GLglDepthRangeCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglDisableCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -1669,8 +1517,6 @@ Handle&lt;Value&gt; GLglDisableCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglDisableClientStateCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -1686,8 +1532,6 @@ Handle&lt;Value&gt; GLglDisableClientStateCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglDrawArraysCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1705,8 +1549,6 @@ Handle&lt;Value&gt; GLglDrawArraysCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglDrawBufferCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -1722,8 +1564,6 @@ Handle&lt;Value&gt; GLglDrawBufferCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglEdgeFlagCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -1739,8 +1579,6 @@ Handle&lt;Value&gt; GLglEdgeFlagCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglEdgeFlagvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -1765,8 +1603,6 @@ Handle&lt;Value&gt; GLglEdgeFlagvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglEnableCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -1782,8 +1618,6 @@ Handle&lt;Value&gt; GLglEnableCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglEnableClientStateCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -1799,8 +1633,6 @@ Handle&lt;Value&gt; GLglEnableClientStateCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglEndCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
   //make call
@@ -1815,8 +1647,6 @@ Handle&lt;Value&gt; GLglEndCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglEndListCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
   //make call
@@ -1831,8 +1661,6 @@ Handle&lt;Value&gt; GLglEndListCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglEvalCoord1dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
 
@@ -1848,8 +1676,6 @@ Handle&lt;Value&gt; GLglEvalCoord1dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglEvalCoord1dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -1874,8 +1700,6 @@ Handle&lt;Value&gt; GLglEvalCoord1dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglEvalCoord1fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
 
@@ -1891,8 +1715,6 @@ Handle&lt;Value&gt; GLglEvalCoord1fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglEvalCoord1fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -1917,8 +1739,6 @@ Handle&lt;Value&gt; GLglEvalCoord1fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglEvalCoord2dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -1935,8 +1755,6 @@ Handle&lt;Value&gt; GLglEvalCoord2dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglEvalCoord2dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -1961,8 +1779,6 @@ Handle&lt;Value&gt; GLglEvalCoord2dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglEvalCoord2fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -1979,8 +1795,6 @@ Handle&lt;Value&gt; GLglEvalCoord2fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglEvalCoord2fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -2005,8 +1819,6 @@ Handle&lt;Value&gt; GLglEvalCoord2fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglEvalMesh1Callback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -2024,8 +1836,6 @@ Handle&lt;Value&gt; GLglEvalMesh1Callback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglEvalMesh2Callback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 5) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -2045,8 +1855,6 @@ Handle&lt;Value&gt; GLglEvalMesh2Callback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglEvalPoint1Callback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -2062,8 +1870,6 @@ Handle&lt;Value&gt; GLglEvalPoint1Callback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglEvalPoint2Callback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -2080,8 +1886,6 @@ Handle&lt;Value&gt; GLglEvalPoint2Callback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglFeedbackBufferCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -2108,8 +1912,6 @@ Handle&lt;Value&gt; GLglFeedbackBufferCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglFinishCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
   //make call
@@ -2124,8 +1926,6 @@ Handle&lt;Value&gt; GLglFinishCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglFlushCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
   //make call
@@ -2140,8 +1940,6 @@ Handle&lt;Value&gt; GLglFlushCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglFogfCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -2158,8 +1956,6 @@ Handle&lt;Value&gt; GLglFogfCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglFogfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -2185,8 +1981,6 @@ Handle&lt;Value&gt; GLglFogfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglFogiCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -2203,8 +1997,6 @@ Handle&lt;Value&gt; GLglFogiCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglFogivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -2230,8 +2022,6 @@ Handle&lt;Value&gt; GLglFogivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglFrontFaceCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -2247,8 +2037,6 @@ Handle&lt;Value&gt; GLglFrontFaceCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglFrustumCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 6) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -2269,8 +2057,6 @@ Handle&lt;Value&gt; GLglFrustumCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGenListsCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -2284,8 +2070,6 @@ Handle&lt;Value&gt; GLglGenListsCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGenTexturesCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -2311,8 +2095,6 @@ Handle&lt;Value&gt; GLglGenTexturesCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetBooleanvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -2338,8 +2120,6 @@ Handle&lt;Value&gt; GLglGetBooleanvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetClipPlaneCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -2365,8 +2145,6 @@ Handle&lt;Value&gt; GLglGetClipPlaneCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetColorTableParameterfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -2393,8 +2171,6 @@ Handle&lt;Value&gt; GLglGetColorTableParameterfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetColorTableParameterivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -2421,8 +2197,6 @@ Handle&lt;Value&gt; GLglGetColorTableParameterivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetConvolutionParameterfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -2449,8 +2223,6 @@ Handle&lt;Value&gt; GLglGetConvolutionParameterfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetConvolutionParameterivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -2477,8 +2249,6 @@ Handle&lt;Value&gt; GLglGetConvolutionParameterivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetDoublevCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -2504,8 +2274,6 @@ Handle&lt;Value&gt; GLglGetDoublevCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetErrorCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
   //make call
@@ -2518,8 +2286,6 @@ Handle&lt;Value&gt; GLglGetErrorCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetFloatvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -2545,8 +2311,6 @@ Handle&lt;Value&gt; GLglGetFloatvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetHistogramParameterfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -2573,8 +2337,6 @@ Handle&lt;Value&gt; GLglGetHistogramParameterfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetHistogramParameterivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -2601,8 +2363,6 @@ Handle&lt;Value&gt; GLglGetHistogramParameterivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetIntegervCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -2628,8 +2388,6 @@ Handle&lt;Value&gt; GLglGetIntegervCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetLightfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -2656,8 +2414,6 @@ Handle&lt;Value&gt; GLglGetLightfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetLightivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -2684,8 +2440,6 @@ Handle&lt;Value&gt; GLglGetLightivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetMapdvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -2712,8 +2466,6 @@ Handle&lt;Value&gt; GLglGetMapdvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetMapfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -2740,8 +2492,6 @@ Handle&lt;Value&gt; GLglGetMapfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetMapivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -2768,8 +2518,6 @@ Handle&lt;Value&gt; GLglGetMapivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetMaterialfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -2796,8 +2544,6 @@ Handle&lt;Value&gt; GLglGetMaterialfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetMaterialivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -2824,8 +2570,6 @@ Handle&lt;Value&gt; GLglGetMaterialivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetMinmaxParameterfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -2852,8 +2596,6 @@ Handle&lt;Value&gt; GLglGetMinmaxParameterfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetMinmaxParameterivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -2880,8 +2622,6 @@ Handle&lt;Value&gt; GLglGetMinmaxParameterivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetPixelMapfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -2907,8 +2647,6 @@ Handle&lt;Value&gt; GLglGetPixelMapfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetPixelMapuivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -2934,8 +2672,6 @@ Handle&lt;Value&gt; GLglGetPixelMapuivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetPixelMapusvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -2961,8 +2697,6 @@ Handle&lt;Value&gt; GLglGetPixelMapusvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetPolygonStippleCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -2987,8 +2721,6 @@ Handle&lt;Value&gt; GLglGetPolygonStippleCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetTexEnvfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -3015,8 +2747,6 @@ Handle&lt;Value&gt; GLglGetTexEnvfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetTexEnvivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -3043,8 +2773,6 @@ Handle&lt;Value&gt; GLglGetTexEnvivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetTexGendvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -3071,8 +2799,6 @@ Handle&lt;Value&gt; GLglGetTexGendvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetTexGenfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -3099,8 +2825,6 @@ Handle&lt;Value&gt; GLglGetTexGenfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetTexGenivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -3127,8 +2851,6 @@ Handle&lt;Value&gt; GLglGetTexGenivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetTexLevelParameterfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -3156,8 +2878,6 @@ Handle&lt;Value&gt; GLglGetTexLevelParameterfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetTexLevelParameterivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -3185,8 +2905,6 @@ Handle&lt;Value&gt; GLglGetTexLevelParameterivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetTexParameterfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -3213,8 +2931,6 @@ Handle&lt;Value&gt; GLglGetTexParameterfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetTexParameterivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -3241,8 +2957,6 @@ Handle&lt;Value&gt; GLglGetTexParameterivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglHintCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -3259,8 +2973,6 @@ Handle&lt;Value&gt; GLglHintCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglHistogramCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -3279,8 +2991,6 @@ Handle&lt;Value&gt; GLglHistogramCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglIndexMaskCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -3296,8 +3006,6 @@ Handle&lt;Value&gt; GLglIndexMaskCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglIndexdCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
 
@@ -3313,8 +3021,6 @@ Handle&lt;Value&gt; GLglIndexdCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglIndexdvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -3339,8 +3045,6 @@ Handle&lt;Value&gt; GLglIndexdvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglIndexfCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
 
@@ -3356,8 +3060,6 @@ Handle&lt;Value&gt; GLglIndexfCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglIndexfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -3382,8 +3084,6 @@ Handle&lt;Value&gt; GLglIndexfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglIndexiCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -3399,8 +3099,6 @@ Handle&lt;Value&gt; GLglIndexiCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglIndexivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -3425,8 +3123,6 @@ Handle&lt;Value&gt; GLglIndexivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglIndexsCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -3442,8 +3138,6 @@ Handle&lt;Value&gt; GLglIndexsCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglIndexsvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -3468,8 +3162,6 @@ Handle&lt;Value&gt; GLglIndexsvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglIndexubCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -3485,8 +3177,6 @@ Handle&lt;Value&gt; GLglIndexubCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglIndexubvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -3511,8 +3201,6 @@ Handle&lt;Value&gt; GLglIndexubvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglInitNamesCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
   //make call
@@ -3527,8 +3215,6 @@ Handle&lt;Value&gt; GLglInitNamesCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglIsEnabledCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -3542,8 +3228,6 @@ Handle&lt;Value&gt; GLglIsEnabledCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglIsListCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -3557,8 +3241,6 @@ Handle&lt;Value&gt; GLglIsListCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglIsTextureCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -3572,8 +3254,6 @@ Handle&lt;Value&gt; GLglIsTextureCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglLightModelfCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -3590,8 +3270,6 @@ Handle&lt;Value&gt; GLglLightModelfCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglLightModelfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -3617,8 +3295,6 @@ Handle&lt;Value&gt; GLglLightModelfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglLightModeliCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -3635,8 +3311,6 @@ Handle&lt;Value&gt; GLglLightModeliCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglLightModelivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -3662,8 +3336,6 @@ Handle&lt;Value&gt; GLglLightModelivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglLightfCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -3681,8 +3353,6 @@ Handle&lt;Value&gt; GLglLightfCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglLightfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -3709,8 +3379,6 @@ Handle&lt;Value&gt; GLglLightfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglLightiCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -3728,8 +3396,6 @@ Handle&lt;Value&gt; GLglLightiCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglLightivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -3756,8 +3422,6 @@ Handle&lt;Value&gt; GLglLightivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglLineStippleCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   unsigned int arg1 = args[1]-&gt;Uint32Value();
@@ -3774,8 +3438,6 @@ Handle&lt;Value&gt; GLglLineStippleCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglLineWidthCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
 
@@ -3791,8 +3453,6 @@ Handle&lt;Value&gt; GLglLineWidthCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglListBaseCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -3808,8 +3468,6 @@ Handle&lt;Value&gt; GLglListBaseCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglLoadIdentityCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
   //make call
@@ -3824,8 +3482,6 @@ Handle&lt;Value&gt; GLglLoadIdentityCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglLoadMatrixdCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -3850,8 +3506,6 @@ Handle&lt;Value&gt; GLglLoadMatrixdCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglLoadMatrixfCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -3876,8 +3530,6 @@ Handle&lt;Value&gt; GLglLoadMatrixfCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglLoadNameCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -3893,8 +3545,6 @@ Handle&lt;Value&gt; GLglLoadNameCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglLogicOpCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -3910,8 +3560,6 @@ Handle&lt;Value&gt; GLglLogicOpCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMap1dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 6) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -3941,8 +3589,6 @@ Handle&lt;Value&gt; GLglMap1dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMap1fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 6) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -3972,8 +3618,6 @@ Handle&lt;Value&gt; GLglMap1fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMap2dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 10) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -4007,8 +3651,6 @@ Handle&lt;Value&gt; GLglMap2dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMap2fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 10) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -4042,8 +3684,6 @@ Handle&lt;Value&gt; GLglMap2fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMapGrid1dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -4061,8 +3701,6 @@ Handle&lt;Value&gt; GLglMapGrid1dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMapGrid1fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -4080,8 +3718,6 @@ Handle&lt;Value&gt; GLglMapGrid1fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMapGrid2dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 6) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -4102,8 +3738,6 @@ Handle&lt;Value&gt; GLglMapGrid2dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMapGrid2fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 6) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -4124,8 +3758,6 @@ Handle&lt;Value&gt; GLglMapGrid2fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMaterialfCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -4143,8 +3775,6 @@ Handle&lt;Value&gt; GLglMaterialfCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMaterialfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -4171,8 +3801,6 @@ Handle&lt;Value&gt; GLglMaterialfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMaterialiCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -4190,8 +3818,6 @@ Handle&lt;Value&gt; GLglMaterialiCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMaterialivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -4218,8 +3844,6 @@ Handle&lt;Value&gt; GLglMaterialivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMatrixModeCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -4235,8 +3859,6 @@ Handle&lt;Value&gt; GLglMatrixModeCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMinmaxCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -4254,8 +3876,6 @@ Handle&lt;Value&gt; GLglMinmaxCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultMatrixdCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -4280,8 +3900,6 @@ Handle&lt;Value&gt; GLglMultMatrixdCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultMatrixfCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -4306,8 +3924,6 @@ Handle&lt;Value&gt; GLglMultMatrixfCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglNewListCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -4324,8 +3940,6 @@ Handle&lt;Value&gt; GLglNewListCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglNormal3bCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -4343,8 +3957,6 @@ Handle&lt;Value&gt; GLglNormal3bCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglNormal3bvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -4369,8 +3981,6 @@ Handle&lt;Value&gt; GLglNormal3bvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglNormal3dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -4388,8 +3998,6 @@ Handle&lt;Value&gt; GLglNormal3dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglNormal3dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -4414,8 +4022,6 @@ Handle&lt;Value&gt; GLglNormal3dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglNormal3fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -4433,8 +4039,6 @@ Handle&lt;Value&gt; GLglNormal3fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglNormal3fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -4459,8 +4063,6 @@ Handle&lt;Value&gt; GLglNormal3fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglNormal3iCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -4478,8 +4080,6 @@ Handle&lt;Value&gt; GLglNormal3iCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglNormal3ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -4504,8 +4104,6 @@ Handle&lt;Value&gt; GLglNormal3ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglNormal3sCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -4523,8 +4121,6 @@ Handle&lt;Value&gt; GLglNormal3sCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglNormal3svCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -4549,8 +4145,6 @@ Handle&lt;Value&gt; GLglNormal3svCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglOrthoCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 6) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -4571,8 +4165,6 @@ Handle&lt;Value&gt; GLglOrthoCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPassThroughCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
 
@@ -4588,8 +4180,6 @@ Handle&lt;Value&gt; GLglPassThroughCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPixelMapfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -4616,8 +4206,6 @@ Handle&lt;Value&gt; GLglPixelMapfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPixelMapuivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -4644,8 +4232,6 @@ Handle&lt;Value&gt; GLglPixelMapuivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPixelMapusvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -4672,8 +4258,6 @@ Handle&lt;Value&gt; GLglPixelMapusvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPixelStorefCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -4690,8 +4274,6 @@ Handle&lt;Value&gt; GLglPixelStorefCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPixelStoreiCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -4708,8 +4290,6 @@ Handle&lt;Value&gt; GLglPixelStoreiCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPixelTransferfCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -4726,8 +4306,6 @@ Handle&lt;Value&gt; GLglPixelTransferfCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPixelTransferiCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -4744,8 +4322,6 @@ Handle&lt;Value&gt; GLglPixelTransferiCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPixelZoomCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -4762,8 +4338,6 @@ Handle&lt;Value&gt; GLglPixelZoomCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPointSizeCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
 
@@ -4779,8 +4353,6 @@ Handle&lt;Value&gt; GLglPointSizeCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPolygonModeCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -4797,8 +4369,6 @@ Handle&lt;Value&gt; GLglPolygonModeCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPolygonOffsetCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -4815,8 +4385,6 @@ Handle&lt;Value&gt; GLglPolygonOffsetCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPolygonStippleCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -4841,8 +4409,6 @@ Handle&lt;Value&gt; GLglPolygonStippleCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPopAttribCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
   //make call
@@ -4857,8 +4423,6 @@ Handle&lt;Value&gt; GLglPopAttribCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPopClientAttribCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
   //make call
@@ -4873,8 +4437,6 @@ Handle&lt;Value&gt; GLglPopClientAttribCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPopMatrixCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
   //make call
@@ -4889,8 +4451,6 @@ Handle&lt;Value&gt; GLglPopMatrixCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPopNameCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
   //make call
@@ -4905,8 +4465,6 @@ Handle&lt;Value&gt; GLglPopNameCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPrioritizeTexturesCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -4942,8 +4500,6 @@ Handle&lt;Value&gt; GLglPrioritizeTexturesCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPushAttribCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -4959,8 +4515,6 @@ Handle&lt;Value&gt; GLglPushAttribCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPushClientAttribCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -4976,8 +4530,6 @@ Handle&lt;Value&gt; GLglPushClientAttribCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPushMatrixCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
   //make call
@@ -4992,8 +4544,6 @@ Handle&lt;Value&gt; GLglPushMatrixCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPushNameCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -5009,8 +4559,6 @@ Handle&lt;Value&gt; GLglPushNameCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRasterPos2dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -5027,8 +4575,6 @@ Handle&lt;Value&gt; GLglRasterPos2dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRasterPos2dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -5053,8 +4599,6 @@ Handle&lt;Value&gt; GLglRasterPos2dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRasterPos2fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -5071,8 +4615,6 @@ Handle&lt;Value&gt; GLglRasterPos2fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRasterPos2fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -5097,8 +4639,6 @@ Handle&lt;Value&gt; GLglRasterPos2fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRasterPos2iCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -5115,8 +4655,6 @@ Handle&lt;Value&gt; GLglRasterPos2iCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRasterPos2ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -5141,8 +4679,6 @@ Handle&lt;Value&gt; GLglRasterPos2ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRasterPos2sCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -5159,8 +4695,6 @@ Handle&lt;Value&gt; GLglRasterPos2sCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRasterPos2svCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -5185,8 +4719,6 @@ Handle&lt;Value&gt; GLglRasterPos2svCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRasterPos3dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -5204,8 +4736,6 @@ Handle&lt;Value&gt; GLglRasterPos3dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRasterPos3dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -5230,8 +4760,6 @@ Handle&lt;Value&gt; GLglRasterPos3dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRasterPos3fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -5249,8 +4777,6 @@ Handle&lt;Value&gt; GLglRasterPos3fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRasterPos3fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -5275,8 +4801,6 @@ Handle&lt;Value&gt; GLglRasterPos3fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRasterPos3iCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -5294,8 +4818,6 @@ Handle&lt;Value&gt; GLglRasterPos3iCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRasterPos3ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -5320,8 +4842,6 @@ Handle&lt;Value&gt; GLglRasterPos3ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRasterPos3sCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -5339,8 +4859,6 @@ Handle&lt;Value&gt; GLglRasterPos3sCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRasterPos3svCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -5365,8 +4883,6 @@ Handle&lt;Value&gt; GLglRasterPos3svCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRasterPos4dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -5385,8 +4901,6 @@ Handle&lt;Value&gt; GLglRasterPos4dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRasterPos4dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -5411,8 +4925,6 @@ Handle&lt;Value&gt; GLglRasterPos4dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRasterPos4fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -5431,8 +4943,6 @@ Handle&lt;Value&gt; GLglRasterPos4fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRasterPos4fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -5457,8 +4967,6 @@ Handle&lt;Value&gt; GLglRasterPos4fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRasterPos4iCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -5477,8 +4985,6 @@ Handle&lt;Value&gt; GLglRasterPos4iCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRasterPos4ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -5503,8 +5009,6 @@ Handle&lt;Value&gt; GLglRasterPos4ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRasterPos4sCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -5523,8 +5027,6 @@ Handle&lt;Value&gt; GLglRasterPos4sCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRasterPos4svCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -5549,8 +5051,6 @@ Handle&lt;Value&gt; GLglRasterPos4svCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglReadBufferCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -5566,8 +5066,6 @@ Handle&lt;Value&gt; GLglReadBufferCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRectdCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -5586,8 +5084,6 @@ Handle&lt;Value&gt; GLglRectdCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRectdvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -5622,8 +5118,6 @@ Handle&lt;Value&gt; GLglRectdvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRectfCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -5642,8 +5136,6 @@ Handle&lt;Value&gt; GLglRectfCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRectfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -5678,8 +5170,6 @@ Handle&lt;Value&gt; GLglRectfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRectiCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -5698,8 +5188,6 @@ Handle&lt;Value&gt; GLglRectiCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRectivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -5734,8 +5222,6 @@ Handle&lt;Value&gt; GLglRectivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRectsCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -5754,8 +5240,6 @@ Handle&lt;Value&gt; GLglRectsCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRectsvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -5790,8 +5274,6 @@ Handle&lt;Value&gt; GLglRectsvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRenderModeCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -5805,8 +5287,6 @@ Handle&lt;Value&gt; GLglRenderModeCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglResetHistogramCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -5822,8 +5302,6 @@ Handle&lt;Value&gt; GLglResetHistogramCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglResetMinmaxCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -5839,8 +5317,6 @@ Handle&lt;Value&gt; GLglResetMinmaxCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRotatedCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -5859,8 +5335,6 @@ Handle&lt;Value&gt; GLglRotatedCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglRotatefCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -5879,8 +5353,6 @@ Handle&lt;Value&gt; GLglRotatefCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglScaledCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -5898,8 +5370,6 @@ Handle&lt;Value&gt; GLglScaledCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglScalefCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -5917,8 +5387,6 @@ Handle&lt;Value&gt; GLglScalefCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglScissorCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -5937,8 +5405,6 @@ Handle&lt;Value&gt; GLglScissorCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglSelectBufferCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -5964,8 +5430,6 @@ Handle&lt;Value&gt; GLglSelectBufferCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglShadeModelCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -5981,8 +5445,6 @@ Handle&lt;Value&gt; GLglShadeModelCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglStencilFuncCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -6000,8 +5462,6 @@ Handle&lt;Value&gt; GLglStencilFuncCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglStencilMaskCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -6017,8 +5477,6 @@ Handle&lt;Value&gt; GLglStencilMaskCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglStencilOpCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -6036,8 +5494,6 @@ Handle&lt;Value&gt; GLglStencilOpCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord1dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
 
@@ -6053,8 +5509,6 @@ Handle&lt;Value&gt; GLglTexCoord1dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord1dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -6079,8 +5533,6 @@ Handle&lt;Value&gt; GLglTexCoord1dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord1fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
 
@@ -6096,8 +5548,6 @@ Handle&lt;Value&gt; GLglTexCoord1fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord1fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -6122,8 +5572,6 @@ Handle&lt;Value&gt; GLglTexCoord1fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord1iCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -6139,8 +5587,6 @@ Handle&lt;Value&gt; GLglTexCoord1iCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord1ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -6165,8 +5611,6 @@ Handle&lt;Value&gt; GLglTexCoord1ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord1sCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -6182,8 +5626,6 @@ Handle&lt;Value&gt; GLglTexCoord1sCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord1svCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -6208,8 +5650,6 @@ Handle&lt;Value&gt; GLglTexCoord1svCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord2dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -6226,8 +5666,6 @@ Handle&lt;Value&gt; GLglTexCoord2dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord2dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -6252,8 +5690,6 @@ Handle&lt;Value&gt; GLglTexCoord2dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord2fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -6270,8 +5706,6 @@ Handle&lt;Value&gt; GLglTexCoord2fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord2fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -6296,8 +5730,6 @@ Handle&lt;Value&gt; GLglTexCoord2fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord2iCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -6314,8 +5746,6 @@ Handle&lt;Value&gt; GLglTexCoord2iCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord2ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -6340,8 +5770,6 @@ Handle&lt;Value&gt; GLglTexCoord2ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord2sCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -6358,8 +5786,6 @@ Handle&lt;Value&gt; GLglTexCoord2sCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord2svCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -6384,8 +5810,6 @@ Handle&lt;Value&gt; GLglTexCoord2svCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord3dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -6403,8 +5827,6 @@ Handle&lt;Value&gt; GLglTexCoord3dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord3dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -6429,8 +5851,6 @@ Handle&lt;Value&gt; GLglTexCoord3dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord3fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -6448,8 +5868,6 @@ Handle&lt;Value&gt; GLglTexCoord3fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord3fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -6474,8 +5892,6 @@ Handle&lt;Value&gt; GLglTexCoord3fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord3iCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -6493,8 +5909,6 @@ Handle&lt;Value&gt; GLglTexCoord3iCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord3ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -6519,8 +5933,6 @@ Handle&lt;Value&gt; GLglTexCoord3ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord3sCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -6538,8 +5950,6 @@ Handle&lt;Value&gt; GLglTexCoord3sCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord3svCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -6564,8 +5974,6 @@ Handle&lt;Value&gt; GLglTexCoord3svCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord4dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -6584,8 +5992,6 @@ Handle&lt;Value&gt; GLglTexCoord4dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord4dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -6610,8 +6016,6 @@ Handle&lt;Value&gt; GLglTexCoord4dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord4fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -6630,8 +6034,6 @@ Handle&lt;Value&gt; GLglTexCoord4fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord4fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -6656,8 +6058,6 @@ Handle&lt;Value&gt; GLglTexCoord4fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord4iCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -6676,8 +6076,6 @@ Handle&lt;Value&gt; GLglTexCoord4iCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord4ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -6702,8 +6100,6 @@ Handle&lt;Value&gt; GLglTexCoord4ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord4sCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -6722,8 +6118,6 @@ Handle&lt;Value&gt; GLglTexCoord4sCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexCoord4svCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -6748,8 +6142,6 @@ Handle&lt;Value&gt; GLglTexCoord4svCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexEnvfCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -6767,8 +6159,6 @@ Handle&lt;Value&gt; GLglTexEnvfCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexEnvfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -6795,8 +6185,6 @@ Handle&lt;Value&gt; GLglTexEnvfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexEnviCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -6814,8 +6202,6 @@ Handle&lt;Value&gt; GLglTexEnviCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexEnvivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -6842,8 +6228,6 @@ Handle&lt;Value&gt; GLglTexEnvivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexGendCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -6861,8 +6245,6 @@ Handle&lt;Value&gt; GLglTexGendCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexGendvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -6889,8 +6271,6 @@ Handle&lt;Value&gt; GLglTexGendvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexGenfCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -6908,8 +6288,6 @@ Handle&lt;Value&gt; GLglTexGenfCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexGenfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -6936,8 +6314,6 @@ Handle&lt;Value&gt; GLglTexGenfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexGeniCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -6955,8 +6331,6 @@ Handle&lt;Value&gt; GLglTexGeniCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexGenivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -6983,8 +6357,6 @@ Handle&lt;Value&gt; GLglTexGenivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexParameterfCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -7002,8 +6374,6 @@ Handle&lt;Value&gt; GLglTexParameterfCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexParameterfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -7030,8 +6400,6 @@ Handle&lt;Value&gt; GLglTexParameterfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexParameteriCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -7049,8 +6417,6 @@ Handle&lt;Value&gt; GLglTexParameteriCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTexParameterivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -7077,8 +6443,6 @@ Handle&lt;Value&gt; GLglTexParameterivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTranslatedCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -7096,8 +6460,6 @@ Handle&lt;Value&gt; GLglTranslatedCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglTranslatefCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -7115,8 +6477,6 @@ Handle&lt;Value&gt; GLglTranslatefCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertex2dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -7133,8 +6493,6 @@ Handle&lt;Value&gt; GLglVertex2dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertex2dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -7159,8 +6517,6 @@ Handle&lt;Value&gt; GLglVertex2dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertex2fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -7177,8 +6533,6 @@ Handle&lt;Value&gt; GLglVertex2fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertex2fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -7203,8 +6557,6 @@ Handle&lt;Value&gt; GLglVertex2fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertex2iCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -7221,8 +6573,6 @@ Handle&lt;Value&gt; GLglVertex2iCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertex2ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -7247,8 +6597,6 @@ Handle&lt;Value&gt; GLglVertex2ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertex2sCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -7265,8 +6613,6 @@ Handle&lt;Value&gt; GLglVertex2sCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertex2svCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -7291,8 +6637,6 @@ Handle&lt;Value&gt; GLglVertex2svCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertex3dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -7310,8 +6654,6 @@ Handle&lt;Value&gt; GLglVertex3dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertex3dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -7336,8 +6678,6 @@ Handle&lt;Value&gt; GLglVertex3dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertex3fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -7355,8 +6695,6 @@ Handle&lt;Value&gt; GLglVertex3fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertex3fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -7381,8 +6719,6 @@ Handle&lt;Value&gt; GLglVertex3fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertex3iCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -7400,8 +6736,6 @@ Handle&lt;Value&gt; GLglVertex3iCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertex3ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -7426,8 +6760,6 @@ Handle&lt;Value&gt; GLglVertex3ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertex3sCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -7445,8 +6777,6 @@ Handle&lt;Value&gt; GLglVertex3sCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertex3svCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -7471,8 +6801,6 @@ Handle&lt;Value&gt; GLglVertex3svCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertex4dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -7491,8 +6819,6 @@ Handle&lt;Value&gt; GLglVertex4dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertex4dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -7517,8 +6843,6 @@ Handle&lt;Value&gt; GLglVertex4dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertex4fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -7537,8 +6861,6 @@ Handle&lt;Value&gt; GLglVertex4fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertex4fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -7563,8 +6885,6 @@ Handle&lt;Value&gt; GLglVertex4fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertex4iCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -7583,8 +6903,6 @@ Handle&lt;Value&gt; GLglVertex4iCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertex4ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -7609,8 +6927,6 @@ Handle&lt;Value&gt; GLglVertex4ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertex4sCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -7629,8 +6945,6 @@ Handle&lt;Value&gt; GLglVertex4sCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertex4svCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -7655,8 +6969,6 @@ Handle&lt;Value&gt; GLglVertex4svCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglViewportCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -7675,8 +6987,6 @@ Handle&lt;Value&gt; GLglViewportCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglSampleCoverageCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   unsigned int arg1 = args[1]-&gt;Uint32Value();
@@ -7693,8 +7003,6 @@ Handle&lt;Value&gt; GLglSampleCoverageCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglLoadTransposeMatrixfCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -7719,8 +7027,6 @@ Handle&lt;Value&gt; GLglLoadTransposeMatrixfCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglLoadTransposeMatrixdCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -7745,8 +7051,6 @@ Handle&lt;Value&gt; GLglLoadTransposeMatrixdCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultTransposeMatrixfCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -7771,8 +7075,6 @@ Handle&lt;Value&gt; GLglMultTransposeMatrixfCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultTransposeMatrixdCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -7797,8 +7099,6 @@ Handle&lt;Value&gt; GLglMultTransposeMatrixdCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglActiveTextureCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -7814,8 +7114,6 @@ Handle&lt;Value&gt; GLglActiveTextureCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglClientActiveTextureCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -7831,8 +7129,6 @@ Handle&lt;Value&gt; GLglClientActiveTextureCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord1dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -7849,8 +7145,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord1dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord1dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -7876,8 +7170,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord1dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord1fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -7894,8 +7186,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord1fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord1fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -7921,8 +7211,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord1fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord1iCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -7939,8 +7227,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord1iCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord1ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -7966,8 +7252,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord1ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord1sCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -7984,8 +7268,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord1sCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord1svCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -8011,8 +7293,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord1svCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord2dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -8030,8 +7310,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord2dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord2dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -8057,8 +7335,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord2dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord2fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -8076,8 +7352,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord2fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord2fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -8103,8 +7377,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord2fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord2iCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -8122,8 +7394,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord2iCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord2ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -8149,8 +7419,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord2ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord2sCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -8168,8 +7436,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord2sCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord2svCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -8195,8 +7461,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord2svCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord3dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -8215,8 +7479,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord3dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord3dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -8242,8 +7504,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord3dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord3fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -8262,8 +7522,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord3fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord3fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -8289,8 +7547,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord3fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord3iCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -8309,8 +7565,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord3iCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord3ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -8336,8 +7590,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord3ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord3sCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -8356,8 +7608,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord3sCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord3svCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -8383,8 +7633,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord3svCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord4dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 5) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -8404,8 +7652,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord4dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord4dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -8431,8 +7677,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord4dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord4fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 5) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -8452,8 +7696,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord4fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord4fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -8479,8 +7721,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord4fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord4ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -8506,8 +7746,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord4ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord4sCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 5) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -8527,8 +7765,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord4sCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiTexCoord4svCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -8554,8 +7790,6 @@ Handle&lt;Value&gt; GLglMultiTexCoord4svCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglFogCoordfCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
 
@@ -8571,8 +7805,6 @@ Handle&lt;Value&gt; GLglFogCoordfCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglFogCoordfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -8597,8 +7829,6 @@ Handle&lt;Value&gt; GLglFogCoordfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglFogCoorddCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
 
@@ -8614,8 +7844,6 @@ Handle&lt;Value&gt; GLglFogCoorddCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglSecondaryColor3bCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -8633,8 +7861,6 @@ Handle&lt;Value&gt; GLglSecondaryColor3bCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglSecondaryColor3bvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -8659,8 +7885,6 @@ Handle&lt;Value&gt; GLglSecondaryColor3bvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglSecondaryColor3dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -8678,8 +7902,6 @@ Handle&lt;Value&gt; GLglSecondaryColor3dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglSecondaryColor3dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -8704,8 +7926,6 @@ Handle&lt;Value&gt; GLglSecondaryColor3dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglSecondaryColor3fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -8723,8 +7943,6 @@ Handle&lt;Value&gt; GLglSecondaryColor3fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglSecondaryColor3fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -8749,8 +7967,6 @@ Handle&lt;Value&gt; GLglSecondaryColor3fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglSecondaryColor3iCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -8768,8 +7984,6 @@ Handle&lt;Value&gt; GLglSecondaryColor3iCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglSecondaryColor3ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -8794,8 +8008,6 @@ Handle&lt;Value&gt; GLglSecondaryColor3ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglSecondaryColor3sCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -8813,8 +8025,6 @@ Handle&lt;Value&gt; GLglSecondaryColor3sCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglSecondaryColor3svCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -8839,8 +8049,6 @@ Handle&lt;Value&gt; GLglSecondaryColor3svCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglSecondaryColor3ubCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   unsigned int arg1 = args[1]-&gt;Uint32Value();
@@ -8858,8 +8066,6 @@ Handle&lt;Value&gt; GLglSecondaryColor3ubCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglSecondaryColor3ubvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -8884,8 +8090,6 @@ Handle&lt;Value&gt; GLglSecondaryColor3ubvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglSecondaryColor3uiCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   unsigned int arg1 = args[1]-&gt;Uint32Value();
@@ -8903,8 +8107,6 @@ Handle&lt;Value&gt; GLglSecondaryColor3uiCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglSecondaryColor3uivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -8929,8 +8131,6 @@ Handle&lt;Value&gt; GLglSecondaryColor3uivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglSecondaryColor3usCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   unsigned int arg1 = args[1]-&gt;Uint32Value();
@@ -8948,8 +8148,6 @@ Handle&lt;Value&gt; GLglSecondaryColor3usCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglSecondaryColor3usvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -8974,8 +8172,6 @@ Handle&lt;Value&gt; GLglSecondaryColor3usvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPointParameterfCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -8992,8 +8188,6 @@ Handle&lt;Value&gt; GLglPointParameterfCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPointParameterfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -9019,8 +8213,6 @@ Handle&lt;Value&gt; GLglPointParameterfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPointParameteriCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -9037,8 +8229,6 @@ Handle&lt;Value&gt; GLglPointParameteriCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglPointParameterivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -9064,8 +8254,6 @@ Handle&lt;Value&gt; GLglPointParameterivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglBlendFuncSeparateCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -9084,8 +8272,6 @@ Handle&lt;Value&gt; GLglBlendFuncSeparateCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglMultiDrawArraysCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -9122,8 +8308,6 @@ Handle&lt;Value&gt; GLglMultiDrawArraysCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglWindowPos2dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -9140,8 +8324,6 @@ Handle&lt;Value&gt; GLglWindowPos2dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglWindowPos2dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -9166,8 +8348,6 @@ Handle&lt;Value&gt; GLglWindowPos2dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglWindowPos2fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -9184,8 +8364,6 @@ Handle&lt;Value&gt; GLglWindowPos2fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglWindowPos2fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -9210,8 +8388,6 @@ Handle&lt;Value&gt; GLglWindowPos2fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglWindowPos2iCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -9228,8 +8404,6 @@ Handle&lt;Value&gt; GLglWindowPos2iCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglWindowPos2ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -9254,8 +8428,6 @@ Handle&lt;Value&gt; GLglWindowPos2ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglWindowPos2sCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -9272,8 +8444,6 @@ Handle&lt;Value&gt; GLglWindowPos2sCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglWindowPos2svCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -9298,8 +8468,6 @@ Handle&lt;Value&gt; GLglWindowPos2svCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglWindowPos3dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -9317,8 +8485,6 @@ Handle&lt;Value&gt; GLglWindowPos3dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglWindowPos3dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -9343,8 +8509,6 @@ Handle&lt;Value&gt; GLglWindowPos3dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglWindowPos3fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -9362,8 +8526,6 @@ Handle&lt;Value&gt; GLglWindowPos3fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglWindowPos3fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -9388,8 +8550,6 @@ Handle&lt;Value&gt; GLglWindowPos3fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglWindowPos3iCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -9407,8 +8567,6 @@ Handle&lt;Value&gt; GLglWindowPos3iCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglWindowPos3ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -9433,8 +8591,6 @@ Handle&lt;Value&gt; GLglWindowPos3ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglWindowPos3sCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -9452,8 +8608,6 @@ Handle&lt;Value&gt; GLglWindowPos3sCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglWindowPos3svCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
     
@@ -9478,8 +8632,6 @@ Handle&lt;Value&gt; GLglWindowPos3svCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGenQueriesCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -9505,8 +8657,6 @@ Handle&lt;Value&gt; GLglGenQueriesCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglDeleteQueriesCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -9532,8 +8682,6 @@ Handle&lt;Value&gt; GLglDeleteQueriesCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglIsQueryCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -9547,8 +8695,6 @@ Handle&lt;Value&gt; GLglIsQueryCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglBeginQueryCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   unsigned int arg1 = args[1]-&gt;Uint32Value();
@@ -9565,8 +8711,6 @@ Handle&lt;Value&gt; GLglBeginQueryCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglEndQueryCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -9582,8 +8726,6 @@ Handle&lt;Value&gt; GLglEndQueryCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetQueryivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -9610,8 +8752,6 @@ Handle&lt;Value&gt; GLglGetQueryivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetQueryObjectivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -9638,8 +8778,6 @@ Handle&lt;Value&gt; GLglGetQueryObjectivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetQueryObjectuivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -9666,8 +8804,6 @@ Handle&lt;Value&gt; GLglGetQueryObjectuivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglBindBufferCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   unsigned int arg1 = args[1]-&gt;Uint32Value();
@@ -9684,8 +8820,6 @@ Handle&lt;Value&gt; GLglBindBufferCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglDeleteBuffersCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -9711,8 +8845,6 @@ Handle&lt;Value&gt; GLglDeleteBuffersCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGenBuffersCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -9738,8 +8870,6 @@ Handle&lt;Value&gt; GLglGenBuffersCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglIsBufferCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -9753,8 +8883,6 @@ Handle&lt;Value&gt; GLglIsBufferCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUnmapBufferCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -9768,8 +8896,6 @@ Handle&lt;Value&gt; GLglUnmapBufferCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetBufferParameterivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -9796,8 +8922,6 @@ Handle&lt;Value&gt; GLglGetBufferParameterivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglDrawBuffersCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -9823,8 +8947,6 @@ Handle&lt;Value&gt; GLglDrawBuffersCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib1dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   double arg1 = args[1]-&gt;NumberValue();
@@ -9841,8 +8963,6 @@ Handle&lt;Value&gt; GLglVertexAttrib1dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib1dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -9868,8 +8988,6 @@ Handle&lt;Value&gt; GLglVertexAttrib1dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib1fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   double arg1 = args[1]-&gt;NumberValue();
@@ -9886,8 +9004,6 @@ Handle&lt;Value&gt; GLglVertexAttrib1fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib1fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -9913,8 +9029,6 @@ Handle&lt;Value&gt; GLglVertexAttrib1fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib1sCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -9931,8 +9045,6 @@ Handle&lt;Value&gt; GLglVertexAttrib1sCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib1svCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -9958,8 +9070,6 @@ Handle&lt;Value&gt; GLglVertexAttrib1svCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib2dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   double arg1 = args[1]-&gt;NumberValue();
@@ -9977,8 +9087,6 @@ Handle&lt;Value&gt; GLglVertexAttrib2dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib2dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10004,8 +9112,6 @@ Handle&lt;Value&gt; GLglVertexAttrib2dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib2fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   double arg1 = args[1]-&gt;NumberValue();
@@ -10023,8 +9129,6 @@ Handle&lt;Value&gt; GLglVertexAttrib2fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib2fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10050,8 +9154,6 @@ Handle&lt;Value&gt; GLglVertexAttrib2fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib2sCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -10069,8 +9171,6 @@ Handle&lt;Value&gt; GLglVertexAttrib2sCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib2svCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10096,8 +9196,6 @@ Handle&lt;Value&gt; GLglVertexAttrib2svCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib3dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   double arg1 = args[1]-&gt;NumberValue();
@@ -10116,8 +9214,6 @@ Handle&lt;Value&gt; GLglVertexAttrib3dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib3dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10143,8 +9239,6 @@ Handle&lt;Value&gt; GLglVertexAttrib3dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib3fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   double arg1 = args[1]-&gt;NumberValue();
@@ -10163,8 +9257,6 @@ Handle&lt;Value&gt; GLglVertexAttrib3fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib3fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10190,8 +9282,6 @@ Handle&lt;Value&gt; GLglVertexAttrib3fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib3sCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -10210,8 +9300,6 @@ Handle&lt;Value&gt; GLglVertexAttrib3sCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib3svCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10237,8 +9325,6 @@ Handle&lt;Value&gt; GLglVertexAttrib3svCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib4NbvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10264,8 +9350,6 @@ Handle&lt;Value&gt; GLglVertexAttrib4NbvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib4NivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10291,8 +9375,6 @@ Handle&lt;Value&gt; GLglVertexAttrib4NivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib4NsvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10318,8 +9400,6 @@ Handle&lt;Value&gt; GLglVertexAttrib4NsvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib4NubCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 5) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   unsigned int arg1 = args[1]-&gt;Uint32Value();
@@ -10339,8 +9419,6 @@ Handle&lt;Value&gt; GLglVertexAttrib4NubCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib4NubvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10366,8 +9444,6 @@ Handle&lt;Value&gt; GLglVertexAttrib4NubvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib4NuivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10393,8 +9469,6 @@ Handle&lt;Value&gt; GLglVertexAttrib4NuivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib4NusvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10420,8 +9494,6 @@ Handle&lt;Value&gt; GLglVertexAttrib4NusvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib4bvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10447,8 +9519,6 @@ Handle&lt;Value&gt; GLglVertexAttrib4bvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib4dCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 5) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   double arg1 = args[1]-&gt;NumberValue();
@@ -10468,8 +9538,6 @@ Handle&lt;Value&gt; GLglVertexAttrib4dCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib4dvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10495,8 +9563,6 @@ Handle&lt;Value&gt; GLglVertexAttrib4dvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib4fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 5) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   double arg1 = args[1]-&gt;NumberValue();
@@ -10516,8 +9582,6 @@ Handle&lt;Value&gt; GLglVertexAttrib4fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib4fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10543,8 +9607,6 @@ Handle&lt;Value&gt; GLglVertexAttrib4fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib4ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10570,8 +9632,6 @@ Handle&lt;Value&gt; GLglVertexAttrib4ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib4sCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 5) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -10591,8 +9651,6 @@ Handle&lt;Value&gt; GLglVertexAttrib4sCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib4svCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10618,8 +9676,6 @@ Handle&lt;Value&gt; GLglVertexAttrib4svCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib4ubvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10645,8 +9701,6 @@ Handle&lt;Value&gt; GLglVertexAttrib4ubvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib4uivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10672,8 +9726,6 @@ Handle&lt;Value&gt; GLglVertexAttrib4uivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglVertexAttrib4usvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10699,8 +9751,6 @@ Handle&lt;Value&gt; GLglVertexAttrib4usvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglEnableVertexAttribArrayCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10716,8 +9766,6 @@ Handle&lt;Value&gt; GLglEnableVertexAttribArrayCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglDisableVertexAttribArrayCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10733,8 +9781,6 @@ Handle&lt;Value&gt; GLglDisableVertexAttribArrayCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetVertexAttribdvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -10761,8 +9807,6 @@ Handle&lt;Value&gt; GLglGetVertexAttribdvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetVertexAttribfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -10789,8 +9833,6 @@ Handle&lt;Value&gt; GLglGetVertexAttribfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetVertexAttribivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -10817,8 +9859,6 @@ Handle&lt;Value&gt; GLglGetVertexAttribivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglDeleteShaderCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10834,8 +9874,6 @@ Handle&lt;Value&gt; GLglDeleteShaderCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglDetachShaderCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   unsigned int arg1 = args[1]-&gt;Uint32Value();
@@ -10852,8 +9890,6 @@ Handle&lt;Value&gt; GLglDetachShaderCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglCreateShaderCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -10867,8 +9903,6 @@ Handle&lt;Value&gt; GLglCreateShaderCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglCompileShaderCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10884,8 +9918,6 @@ Handle&lt;Value&gt; GLglCompileShaderCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglCreateProgramCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 
   //make call
@@ -10898,8 +9930,6 @@ Handle&lt;Value&gt; GLglCreateProgramCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglAttachShaderCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   unsigned int arg1 = args[1]-&gt;Uint32Value();
@@ -10916,8 +9946,6 @@ Handle&lt;Value&gt; GLglAttachShaderCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglLinkProgramCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10933,8 +9961,6 @@ Handle&lt;Value&gt; GLglLinkProgramCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUseProgramCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10950,8 +9976,6 @@ Handle&lt;Value&gt; GLglUseProgramCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglDeleteProgramCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10967,8 +9991,6 @@ Handle&lt;Value&gt; GLglDeleteProgramCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglValidateProgramCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -10984,8 +10006,6 @@ Handle&lt;Value&gt; GLglValidateProgramCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniform1fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -11002,8 +10022,6 @@ Handle&lt;Value&gt; GLglUniform1fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniform2fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -11021,8 +10039,6 @@ Handle&lt;Value&gt; GLglUniform2fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniform3fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -11041,8 +10057,6 @@ Handle&lt;Value&gt; GLglUniform3fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniform4fCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 5) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -11062,8 +10076,6 @@ Handle&lt;Value&gt; GLglUniform4fCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniform1iCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11080,8 +10092,6 @@ Handle&lt;Value&gt; GLglUniform1iCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniform2iCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11099,8 +10109,6 @@ Handle&lt;Value&gt; GLglUniform2iCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniform3iCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11119,8 +10127,6 @@ Handle&lt;Value&gt; GLglUniform3iCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniform4iCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 5) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11140,8 +10146,6 @@ Handle&lt;Value&gt; GLglUniform4iCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniform1fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11168,8 +10172,6 @@ Handle&lt;Value&gt; GLglUniform1fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniform2fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11196,8 +10198,6 @@ Handle&lt;Value&gt; GLglUniform2fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniform3fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11224,8 +10224,6 @@ Handle&lt;Value&gt; GLglUniform3fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniform4fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11252,8 +10250,6 @@ Handle&lt;Value&gt; GLglUniform4fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniform1ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11280,8 +10276,6 @@ Handle&lt;Value&gt; GLglUniform1ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniform2ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11308,8 +10302,6 @@ Handle&lt;Value&gt; GLglUniform2ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniform3ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11336,8 +10328,6 @@ Handle&lt;Value&gt; GLglUniform3ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniform4ivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11364,8 +10354,6 @@ Handle&lt;Value&gt; GLglUniform4ivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniformMatrix2fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11393,8 +10381,6 @@ Handle&lt;Value&gt; GLglUniformMatrix2fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniformMatrix3fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11422,8 +10408,6 @@ Handle&lt;Value&gt; GLglUniformMatrix3fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniformMatrix4fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11451,8 +10435,6 @@ Handle&lt;Value&gt; GLglUniformMatrix4fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglIsShaderCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -11466,8 +10448,6 @@ Handle&lt;Value&gt; GLglIsShaderCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglIsProgramCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -11481,8 +10461,6 @@ Handle&lt;Value&gt; GLglIsProgramCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetShaderivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11509,8 +10487,6 @@ Handle&lt;Value&gt; GLglGetShaderivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetProgramivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11537,8 +10513,6 @@ Handle&lt;Value&gt; GLglGetProgramivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetAttachedShadersCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11575,8 +10549,6 @@ Handle&lt;Value&gt; GLglGetAttachedShadersCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetUniformfvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11603,8 +10575,6 @@ Handle&lt;Value&gt; GLglGetUniformfvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglGetUniformivCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11631,8 +10601,6 @@ Handle&lt;Value&gt; GLglGetUniformivCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglStencilFuncSeparateCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11651,8 +10619,6 @@ Handle&lt;Value&gt; GLglStencilFuncSeparateCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglStencilOpSeparateCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11671,8 +10637,6 @@ Handle&lt;Value&gt; GLglStencilOpSeparateCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglStencilMaskSeparateCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   unsigned int arg1 = args[1]-&gt;Uint32Value();
@@ -11689,8 +10653,6 @@ Handle&lt;Value&gt; GLglStencilMaskSeparateCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniformMatrix2x3fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11718,8 +10680,6 @@ Handle&lt;Value&gt; GLglUniformMatrix2x3fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniformMatrix3x2fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11747,8 +10707,6 @@ Handle&lt;Value&gt; GLglUniformMatrix3x2fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniformMatrix2x4fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11776,8 +10734,6 @@ Handle&lt;Value&gt; GLglUniformMatrix2x4fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniformMatrix4x2fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11805,8 +10761,6 @@ Handle&lt;Value&gt; GLglUniformMatrix4x2fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniformMatrix3x4fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -11834,8 +10788,6 @@ Handle&lt;Value&gt; GLglUniformMatrix3x4fvCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLglUniformMatrix4x3fvCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();</diff>
      <filename>glbindings/glbind.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -94,8 +94,6 @@ def generate_function(obj):
 Handle&lt;&lt;ret&gt;&gt; GL&lt;name&gt;Callback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; &lt;len_params&gt;) return v8::Undefined();
-  //define handle scope
-  HandleScope handle_scope;
   //get arguments
 &lt;args&gt;
   //make call</diff>
      <filename>glbindings/glbind.py</filename>
    </modified>
    <modified>
      <diff>@@ -1247,8 +1247,6 @@ Handle&lt;Value&gt; GetGLU_TESS_MAX_COORD(Local&lt;String&gt; property,
 Handle&lt;Value&gt; GLUCheckExtensionCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   Handle&lt;Array&gt; arrHandle0 = Handle&lt;Array&gt;::Cast(args[0]);
@@ -1280,8 +1278,6 @@ Handle&lt;Value&gt; GLUCheckExtensionCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLULookAtCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 9) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -1304,8 +1300,6 @@ Handle&lt;Value&gt; GLULookAtCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUNewNurbsRendererCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -1319,8 +1313,6 @@ Handle&lt;Value&gt; GLUNewNurbsRendererCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUNewQuadricCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -1334,8 +1326,6 @@ Handle&lt;Value&gt; GLUNewQuadricCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUNewTessCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -1349,8 +1339,6 @@ Handle&lt;Value&gt; GLUNewTessCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUOrtho2DCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -1368,8 +1356,6 @@ Handle&lt;Value&gt; GLUOrtho2DCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUPerspectiveCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -1387,8 +1373,6 @@ Handle&lt;Value&gt; GLUPerspectiveCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUPickMatrixCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 5) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();</diff>
      <filename>glubindings/glubind.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -104,8 +104,6 @@ def make_function(prefix, name, params, return_val):
 Handle&lt;Value&gt; GLU&lt;name&gt;Callback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; &lt;len_params&gt;) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 &lt;args&gt;
   //make call</diff>
      <filename>glubindings/glubind.py</filename>
    </modified>
    <modified>
      <diff>@@ -25,8 +25,6 @@ void callbackTimerFunc(int value) {
 Handle&lt;Value&gt; GLUTTimerFuncCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   unsigned int millisec = args[0]-&gt;Uint32Value();
   int timerId = args[2]-&gt;IntegerValue();</diff>
      <filename>glutbindings/glutTimerFunc.template</filename>
    </modified>
    <modified>
      <diff>@@ -1331,8 +1331,6 @@ Handle&lt;Value&gt; GLUTInitCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTInitDisplayModeCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   unsigned int arg0 = args[0]-&gt;Uint32Value();
 
@@ -1347,8 +1345,6 @@ Handle&lt;Value&gt; GLUTInitDisplayModeCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTInitDisplayStringCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   String::Utf8Value value0(args[0]);
   char* arg0 = *value0;
@@ -1364,8 +1360,6 @@ Handle&lt;Value&gt; GLUTInitDisplayStringCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTInitWindowPositionCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1381,8 +1375,6 @@ Handle&lt;Value&gt; GLUTInitWindowPositionCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTInitWindowSizeCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1398,8 +1390,6 @@ Handle&lt;Value&gt; GLUTInitWindowSizeCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTMainLoopCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -1413,8 +1403,6 @@ Handle&lt;Value&gt; GLUTMainLoopCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTCreateWindowCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   String::Utf8Value value0(args[0]);
   char* arg0 = *value0;
@@ -1430,8 +1418,6 @@ Handle&lt;Value&gt; GLUTCreateWindowCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTCreateSubWindowCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 5) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1450,8 +1436,6 @@ Handle&lt;Value&gt; GLUTCreateSubWindowCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTDestroyWindowCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -1466,8 +1450,6 @@ Handle&lt;Value&gt; GLUTDestroyWindowCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTPostRedisplayCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -1481,8 +1463,6 @@ Handle&lt;Value&gt; GLUTPostRedisplayCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTPostWindowRedisplayCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -1497,8 +1477,6 @@ Handle&lt;Value&gt; GLUTPostWindowRedisplayCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTSwapBuffersCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -1512,8 +1490,6 @@ Handle&lt;Value&gt; GLUTSwapBuffersCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTGetWindowCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -1527,8 +1503,6 @@ Handle&lt;Value&gt; GLUTGetWindowCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTSetWindowCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -1543,8 +1517,6 @@ Handle&lt;Value&gt; GLUTSetWindowCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTSetWindowTitleCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   String::Utf8Value value0(args[0]);
   char* arg0 = *value0;
@@ -1560,8 +1532,6 @@ Handle&lt;Value&gt; GLUTSetWindowTitleCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTSetIconTitleCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   String::Utf8Value value0(args[0]);
   char* arg0 = *value0;
@@ -1577,8 +1547,6 @@ Handle&lt;Value&gt; GLUTSetIconTitleCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTPositionWindowCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1594,8 +1562,6 @@ Handle&lt;Value&gt; GLUTPositionWindowCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTReshapeWindowCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1611,8 +1577,6 @@ Handle&lt;Value&gt; GLUTReshapeWindowCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTPopWindowCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -1626,8 +1590,6 @@ Handle&lt;Value&gt; GLUTPopWindowCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTPushWindowCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -1641,8 +1603,6 @@ Handle&lt;Value&gt; GLUTPushWindowCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTIconifyWindowCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -1656,8 +1616,6 @@ Handle&lt;Value&gt; GLUTIconifyWindowCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTShowWindowCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -1671,8 +1629,6 @@ Handle&lt;Value&gt; GLUTShowWindowCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTHideWindowCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -1686,8 +1642,6 @@ Handle&lt;Value&gt; GLUTHideWindowCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTFullScreenCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -1701,8 +1655,6 @@ Handle&lt;Value&gt; GLUTFullScreenCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTSetCursorCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -1717,8 +1669,6 @@ Handle&lt;Value&gt; GLUTSetCursorCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTWarpPointerCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -1768,8 +1718,6 @@ Handle&lt;Value&gt; GLUTWMCloseFuncCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTCheckLoopCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -1783,8 +1731,6 @@ Handle&lt;Value&gt; GLUTCheckLoopCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTEstablishOverlayCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -1798,8 +1744,6 @@ Handle&lt;Value&gt; GLUTEstablishOverlayCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTRemoveOverlayCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -1813,8 +1757,6 @@ Handle&lt;Value&gt; GLUTRemoveOverlayCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTUseLayerCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -1829,8 +1771,6 @@ Handle&lt;Value&gt; GLUTUseLayerCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTPostOverlayRedisplayCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -1844,8 +1784,6 @@ Handle&lt;Value&gt; GLUTPostOverlayRedisplayCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTPostWindowOverlayRedisplayCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -1860,8 +1798,6 @@ Handle&lt;Value&gt; GLUTPostWindowOverlayRedisplayCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTShowOverlayCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -1875,8 +1811,6 @@ Handle&lt;Value&gt; GLUTShowOverlayCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTHideOverlayCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -1890,8 +1824,6 @@ Handle&lt;Value&gt; GLUTHideOverlayCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTCreateMenuCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   Handle&lt;Function&gt; value0 = Handle&lt;Function&gt;::Cast(args[0]);
   void* arg0 = *value0;
@@ -1907,8 +1839,6 @@ Handle&lt;Value&gt; GLUTCreateMenuCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTDestroyMenuCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -1923,8 +1853,6 @@ Handle&lt;Value&gt; GLUTDestroyMenuCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTGetMenuCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -1938,8 +1866,6 @@ Handle&lt;Value&gt; GLUTGetMenuCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTSetMenuCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -1954,8 +1880,6 @@ Handle&lt;Value&gt; GLUTSetMenuCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTAddMenuEntryCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   String::Utf8Value value0(args[0]);
   char* arg0 = *value0;
@@ -1972,8 +1896,6 @@ Handle&lt;Value&gt; GLUTAddMenuEntryCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTAddSubMenuCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   String::Utf8Value value0(args[0]);
   char* arg0 = *value0;
@@ -1990,8 +1912,6 @@ Handle&lt;Value&gt; GLUTAddSubMenuCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTChangeToMenuEntryCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   String::Utf8Value value1(args[1]);
@@ -2009,8 +1929,6 @@ Handle&lt;Value&gt; GLUTChangeToMenuEntryCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTChangeToSubMenuCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   String::Utf8Value value1(args[1]);
@@ -2028,8 +1946,6 @@ Handle&lt;Value&gt; GLUTChangeToSubMenuCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTRemoveMenuItemCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -2044,8 +1960,6 @@ Handle&lt;Value&gt; GLUTRemoveMenuItemCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTAttachMenuCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -2060,8 +1974,6 @@ Handle&lt;Value&gt; GLUTAttachMenuCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTDetachMenuCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -2412,8 +2324,6 @@ void callbackTimerFunc(int value) {
 Handle&lt;Value&gt; GLUTTimerFuncCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   unsigned int millisec = args[0]-&gt;Uint32Value();
   int timerId = args[2]-&gt;IntegerValue();
@@ -2945,8 +2855,6 @@ Handle&lt;Value&gt; GLUTSpecialUpFuncCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTJoystickFuncCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   Handle&lt;Function&gt; value0 = Handle&lt;Function&gt;::Cast(args[0]);
   void* arg0 = *value0;
@@ -2963,10 +2871,8 @@ Handle&lt;Value&gt; GLUTJoystickFuncCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTSetColorCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
-  int arg0    = args[0]-&gt;Int32Value();
+  int arg0 = args[0]-&gt;Int32Value();
   double arg1 = args[1]-&gt;NumberValue();
   double arg2 = args[2]-&gt;NumberValue();
   double arg3 = args[3]-&gt;NumberValue();
@@ -2982,8 +2888,6 @@ Handle&lt;Value&gt; GLUTSetColorCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTGetColorCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -2999,8 +2903,6 @@ Handle&lt;Value&gt; GLUTGetColorCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTCopyColormapCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -3015,8 +2917,6 @@ Handle&lt;Value&gt; GLUTCopyColormapCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTGetCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -3031,8 +2931,6 @@ Handle&lt;Value&gt; GLUTGetCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTDeviceGetCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -3047,8 +2945,6 @@ Handle&lt;Value&gt; GLUTDeviceGetCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTExtensionSupportedCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   String::Utf8Value value0(args[0]);
   char* arg0 = *value0;
@@ -3064,8 +2960,6 @@ Handle&lt;Value&gt; GLUTExtensionSupportedCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTGetModifiersCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -3079,8 +2973,6 @@ Handle&lt;Value&gt; GLUTGetModifiersCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTLayerGetCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -3095,8 +2987,6 @@ Handle&lt;Value&gt; GLUTLayerGetCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTBitmapCharacterCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   String::Utf8Value value0(args[0]);
   char* key0 = *value0;
@@ -3114,8 +3004,6 @@ Handle&lt;Value&gt; GLUTBitmapCharacterCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTBitmapWidthCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   String::Utf8Value value0(args[0]);
   char* key0 = *value0;
@@ -3133,8 +3021,6 @@ Handle&lt;Value&gt; GLUTBitmapWidthCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTStrokeCharacterCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   String::Utf8Value value0(args[0]);
   char* key0 = *value0;
@@ -3152,8 +3038,6 @@ Handle&lt;Value&gt; GLUTStrokeCharacterCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTStrokeWidthCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   String::Utf8Value value0(args[0]);
   char* key0 = *value0;
@@ -3171,8 +3055,6 @@ Handle&lt;Value&gt; GLUTStrokeWidthCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTBitmapLengthCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   String::Utf8Value value0(args[0]);
   char* key0 = *value0;
@@ -3191,8 +3073,6 @@ Handle&lt;Value&gt; GLUTBitmapLengthCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTStrokeLengthCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 2) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   String::Utf8Value value0(args[0]);
   char* key0 = *value0;
@@ -3211,8 +3091,6 @@ Handle&lt;Value&gt; GLUTStrokeLengthCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTWireSphereCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -3229,8 +3107,6 @@ Handle&lt;Value&gt; GLUTWireSphereCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTSolidSphereCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 3) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -3247,8 +3123,6 @@ Handle&lt;Value&gt; GLUTSolidSphereCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTWireConeCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -3266,8 +3140,6 @@ Handle&lt;Value&gt; GLUTWireConeCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTSolidConeCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -3285,8 +3157,6 @@ Handle&lt;Value&gt; GLUTSolidConeCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTWireCubeCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
 
@@ -3301,8 +3171,6 @@ Handle&lt;Value&gt; GLUTWireCubeCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTSolidCubeCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
 
@@ -3317,8 +3185,6 @@ Handle&lt;Value&gt; GLUTSolidCubeCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTWireTorusCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -3336,8 +3202,6 @@ Handle&lt;Value&gt; GLUTWireTorusCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTSolidTorusCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
   double arg1 = args[1]-&gt;NumberValue();
@@ -3355,8 +3219,6 @@ Handle&lt;Value&gt; GLUTSolidTorusCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTWireDodecahedronCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -3370,8 +3232,6 @@ Handle&lt;Value&gt; GLUTWireDodecahedronCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTSolidDodecahedronCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -3385,8 +3245,6 @@ Handle&lt;Value&gt; GLUTSolidDodecahedronCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTWireTeapotCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
 
@@ -3401,8 +3259,6 @@ Handle&lt;Value&gt; GLUTWireTeapotCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTSolidTeapotCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   double arg0 = args[0]-&gt;NumberValue();
 
@@ -3417,8 +3273,6 @@ Handle&lt;Value&gt; GLUTSolidTeapotCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTWireOctahedronCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -3432,8 +3286,6 @@ Handle&lt;Value&gt; GLUTWireOctahedronCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTSolidOctahedronCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -3447,8 +3299,6 @@ Handle&lt;Value&gt; GLUTSolidOctahedronCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTWireTetrahedronCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -3462,8 +3312,6 @@ Handle&lt;Value&gt; GLUTWireTetrahedronCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTSolidTetrahedronCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -3477,8 +3325,6 @@ Handle&lt;Value&gt; GLUTSolidTetrahedronCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTWireIcosahedronCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -3492,8 +3338,6 @@ Handle&lt;Value&gt; GLUTWireIcosahedronCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTSolidIcosahedronCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -3507,8 +3351,6 @@ Handle&lt;Value&gt; GLUTSolidIcosahedronCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTVideoResizeGetCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -3523,8 +3365,6 @@ Handle&lt;Value&gt; GLUTVideoResizeGetCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTSetupVideoResizingCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -3538,8 +3378,6 @@ Handle&lt;Value&gt; GLUTSetupVideoResizingCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTStopVideoResizingCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -3553,8 +3391,6 @@ Handle&lt;Value&gt; GLUTStopVideoResizingCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTVideoResizeCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -3572,8 +3408,6 @@ Handle&lt;Value&gt; GLUTVideoResizeCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTVideoPanCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 4) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
   int arg1 = args[1]-&gt;IntegerValue();
@@ -3591,8 +3425,6 @@ Handle&lt;Value&gt; GLUTVideoPanCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTReportErrorsCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -3662,8 +3494,6 @@ Handle&lt;Value&gt; GetGLUT_JOYSTICK_BUTTON_D(Local&lt;String&gt; property,
 Handle&lt;Value&gt; GLUTIgnoreKeyRepeatCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -3678,8 +3508,6 @@ Handle&lt;Value&gt; GLUTIgnoreKeyRepeatCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTSetKeyRepeatCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 
@@ -3694,8 +3522,6 @@ Handle&lt;Value&gt; GLUTSetKeyRepeatCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTForceJoystickFuncCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -3765,8 +3591,6 @@ Handle&lt;Value&gt; GetGLUT_GAME_MODE_DISPLAY_CHANGED(Local&lt;String&gt; property,
 Handle&lt;Value&gt; GLUTGameModeStringCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   String::Utf8Value value0(args[0]);
   char* arg0 = *value0;
@@ -3782,8 +3606,6 @@ Handle&lt;Value&gt; GLUTGameModeStringCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTEnterGameModeCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -3797,8 +3619,6 @@ Handle&lt;Value&gt; GLUTEnterGameModeCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTLeaveGameModeCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 0) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 
   //make call
@@ -3812,8 +3632,6 @@ Handle&lt;Value&gt; GLUTLeaveGameModeCallback(const Arguments&amp; args) {
 Handle&lt;Value&gt; GLUTGameModeGetCallback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; 1) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
   int arg0 = args[0]-&gt;IntegerValue();
 </diff>
      <filename>glutbindings/glutbind.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -126,8 +126,6 @@ def make_function(prefix, name, params_list, count, return_val):
 Handle&lt;Value&gt; GLUT&lt;name&gt;Callback(const Arguments&amp; args) {
   //if less that nbr of formal parameters then do nothing
   if (args.Length() &lt; &lt;len_params&gt;) return v8::Undefined();
-  //define handle scope
-  HandleScope scope;
   //get arguments
 &lt;args&gt;
   //make call</diff>
      <filename>glutbindings/glutbind.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>75d485bf503bc9d13fe7ce52f34818920dba0b3e</id>
    </parent>
  </parents>
  <author>
    <name>philogb</name>
    <email>philogb@gmail.com</email>
  </author>
  <url>http://github.com/philogb/v8-gl/commit/37e03dc765da6747b56b313cb330703c93241bee</url>
  <id>37e03dc765da6747b56b313cb330703c93241bee</id>
  <committed-date>2009-10-27T11:16:36-07:00</committed-date>
  <authored-date>2009-10-27T11:16:36-07:00</authored-date>
  <message>Removing handleScopes for Glu(t) and Gl callbacks</message>
  <tree>d598dc6c20419ba6f3772e584325f66ec142f5a8</tree>
  <committer>
    <name>philogb</name>
    <email>philogb@gmail.com</email>
  </committer>
</commit>
