Changeset 268

Show
Ignore:
Timestamp:
07/24/07 12:03:01 (1 year ago)
Author:
aldacron
Message:

[DerelictUtil?]
* fixed a potential null pointer access that was overlooked in the last update
[docs]
* added documentation for the two new loader properties

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/DerelictUtil/derelict/util/loader.d

    r267 r268  
    291291    char[] libName() 
    292292    { 
    293         return myLib.name
     293        return loaded ? myLib.name : null
    294294    } 
    295295 
  • trunk/docs/loading.html

    r252 r268  
    11<html lang="en"> 
    22<head> 
    3    <title>Loading/Unloading Shared Libraries</title> 
    4    <link rel="stylesheet" type="text/css" href="styles.css"> 
     3    <title>Loading/Unloading Shared Libraries</title> 
     4    <link rel="stylesheet" type="text/css" href="styles.css"> 
    55</head> 
    66<body> 
     
    9292</p> 
    9393 
     94<h4>Loader Properties</h4> 
     95Loaders have two properties you may find useful. The <tt>loaded</tt> property 
     96is true if the loader's shared library has been loaded, false if not. The <tt>libName</tt> 
     97property will return the name of the shared library that has been loaded, or <tt>null</tt> 
     98when the loader has no library loaded. 
     99 
    94100<h4>Note For Linux/Mac Users</h4> 
    95101On Linux and Mac, there is one additional dependency that must be linked into