/********************************************************************
                           StartNew

  Description: Opens a new document, if no files are opened when
               GWD Text Editor is started.
  Syntax:      CLOSE

  You must copy this file in the GWDTextEditor\Script\StartUp 
  directory (C:\GTEdit\Script\StartUp by default)

  Author: Vedran Gaco
********************************************************************/

#include <editor/doc.h>

int main(void)
{
   if(!Gte_GetActiveDocument())
      Gte_NewDocument();
   return 0;
}

