diff dwt/DWT.d @ 36:db5a898b2119

Fixed a lot of compile errors
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Tue, 07 Oct 2008 12:56:18 +0200
parents f565d3a95c0a
children 642f460a0908
line wrap: on
line diff
--- a/dwt/DWT.d	Sun Sep 14 23:32:29 2008 +0200
+++ b/dwt/DWT.d	Tue Oct 07 12:56:18 2008 +0200
@@ -3697,7 +3697,7 @@
      * @return the DWT version number
      */
     public static int getVersion () {
-        return Library.DWT_VERSION;
+        return Library.SWT_VERSION;
     }
 
     /**
@@ -3705,6 +3705,10 @@
      *
      * @param code the DWT error code
      */
+    public static void error (String file, long line, int code) {
+        error (code, null);
+    }
+    
     public static void error (int code) {
         error(code, null);
     }
@@ -3782,9 +3786,9 @@
          * NOTE: Exceptions thrown in syncExec and asyncExec must be
          * wrapped.
          */
-        if (code != SWT.ERROR_FAILED_EXEC) {
-            if (cast(SWTError) throwable) throw cast(SWTError) throwable;
-            if (cast(SWTException) throwable)  throw cast(SWTException) throwable;
+        if (code != DWT.ERROR_FAILED_EXEC) {
+            if (cast(DWTError) throwable) throw cast(DWTError) throwable;
+            if (cast(DWTException) throwable)  throw cast(DWTException) throwable;
         }
 
         String message = findErrorText (code);