Type in the words(s) to search for:

    Mark results
      Userbooster Help

      __LINE__ compiler directive

      A string with the source code line information, created during script compilation.

      __LINE__

      Example

      function main()
      {
          try
          {
              raise_exception();
          }
          catch( e )
          {
              cout << "caught:\n" + e;
          }
      }
      
      function raise_exception()
      {
          try
          {
              throw
                  "WHERE WE ARE:"
                  + "line " + __LINE__
                  + " of \"" + __FILE__ + "\"\n"
                  + "date is \"" + __DATE__ + "\"\n"
                  + "time is \"" + __TIME__ + "\"\n"
                  + "time zone is \"" + __TZ__ + "\"\n"
                  ;
          }
          finally
          {
              cout << "exception raised!\n\n";
          }
      }