2004/utils/render/samples/template/template.cpp
////////////////////////////////////////////////////////////////////////////////
// funcload()
//
// This function is called to define all function names in the ADS
// function table.  Each named function will be callable from lisp or
// invokable from another ADS application.
//

funcload()
This function is called to define all function names in the ADS
function table.  Each named function will be callable from lisp or
invokable from another ADS application.
funcload () This function is called to define all function names in the ADS function table . Each named function will be callable from lisp or invokable from another ADS application .
static int
funcload()
{
    unsigned short i;
    AvErrorCode retval;
    static int sbInitialized = FALSE;
    if (!sbInitialized) {
        retval = av_loadlib();
        if (retval != AvRetNorm) {
            acdbFail("Library initialization failed.\n");
            return RTERROR;
        }
        sbInitialized = TRUE;
    }
    for (i = 0; i < ELEMENTS(gFunctionTable); i++) {
        if (acedDefun(gFunctionTable[i].name, (short)i) != RTNORM)
            return RTERROR;
    }
    return RTNORM;
}
static int funcload ( ) { unsigned short i ; AvErrorCode retval ; static int sbInitialized = FALSE ; if ( ! sbInitialized ) { retval = av_loadlib ( ) ; if ( retval != AvRetNorm ) { acdbFail ( " \n " ) ; return RTERROR ; } sbInitialized = TRUE ; } for ( i = 0 ; i < ELEMENTS ( gFunctionTable ) ; i ++ ) { if ( acedDefun ( gFunctionTable [ i ] . name , ( short ) i ) != RTNORM ) return RTERROR ; } return RTNORM ; }
funcload()
This function is called to define all function names in the ADS
function table.
funcload () This function is called to define all function names in the ADS function table .
// AVLIB: we must call av_loadlib() to assure that Render.arx
 // is loaded.
 //
 // call acedDefun() for each function name 
 // in gFunctionTable
