Using the Cache

[<<<] [>>>]

ScriptBasic is powerful being able to store the compiled version of BASIC programs in binary format in file. The next piece of code checks if there is already a compiled version of the BASIC program in the configured cache directory calling the function scriba_UseCacheFile()

  if( scriba_UseCacheFile(pProgram) == SCRIBA_ERROR_SUCCESS ){
    if( (iError = scriba_LoadBinaryProgram(pProgram)) != 0 ){
      ERREXIT;
      }

The function scriba_LoadBinaryProgram() loads the binary program.


[<<<] [>>>]