]> git.llucax.com Git - software/druntime.git/blobdiff - src/common/core/runtime.d
First attempt at support for dynamic library loading and unloading. Currently, only...
[software/druntime.git] / src / common / core / runtime.d
index 36607bec0129b093b2348cea43cb742fda492112..3344f2372d58b597932c3ba08465e5b31d06562e 100644 (file)
@@ -24,7 +24,7 @@ private
     extern (C) bool rt_term( ExceptionHandler dg = null );
 
     extern (C) void* rt_loadLibrary( in char[] name );
-    extern (C) void  rt_unloadLibrary( void* ptr );
+    extern (C) bool  rt_unloadLibrary( void* ptr );
 }
 
 
@@ -116,9 +116,9 @@ struct Runtime
      * Params:
      *  p = A reference to the library to unload.
      */
-    static void unloadLibrary( void* p )
+    static bool unloadLibrary( void* p )
     {
-        rt_unloadLibrary( p );
+        return rt_unloadLibrary( p );
     }