mb_get_include

Previous  Next

 

int mb_get_include( mb_interpreter_t* s, char* lpszDest, int nBufLen, const char* lpszSource, int dwOptions )

 


 

Returns the current include string as being used by the interpreter.

 

Example

 

// Code from MyBASIC2_Dll

// Clear _OF_NOSYSFILES option flag so that any subsequent runs/calls/loads

// will load system files

 

int nBufLen = mb_get_include( s, NULL, 0, pBuffer, MB_SF_TOP );

 

if ( nBufLen > 0 )

  {

  lpszNewSource = (char*)mb_malloc( nBufLen + 1 );

 

  if ( lpszNewSource )

     {

     if ( mb_get_include( s, lpszNewSource, nBufLen, pBuffer, MB_SF_TOP ) > 0 )

        {

        pBuffer = lpszNewSource;

        }

     endif

     }

   endif

   }

endif