#@package: libmanager require

#
# Copyright (C) 1992-1997 NeoSoft.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose and without fee is hereby granted, provided
# that the above copyright notice appear in all copies.  NeoSoft makes no 
# representations about the suitability of this software for any purpose.
# It is provided "as is" without express or implied warranty.

#
# This little thing will force the autoloading of the specified command,
# without actually executing it.
#
proc require {commandName} {

    # already loaded?
    if {[info commands $commandName] != ""} return

    # get it
    if ![auto_load $commandName] {
	error "couldn't auto_load $commandName"
    }
}
