]> git.mxchange.org Git - flightgear.git/commit
while abort() is really only useful for listeners (in all other cases
authormfranz <mfranz>
Thu, 19 Jun 2008 17:18:42 +0000 (17:18 +0000)
committermfranz <mfranz>
Thu, 19 Jun 2008 17:18:42 +0000 (17:18 +0000)
commitdec96cfa45b442a827ec2543ef60ac405ac99e31
treecda6e7d12bb3e922be5dcc3ec51f9d406e12f393
parent37559fee214839d08633b73799bd7c60cec16b70
while abort() is really only useful for listeners (in all other cases
we know the stack trace), it's better to use a separate function for
it, as this can be used conditionally, as in:

  setlistener("/the/property", func(n) {
      if (n.getValue() < 0) # who's writing negative numbers to /the/property?!
          abort();          # let's check the backtrace ...
  });
src/Scripting/NasalSys.cxx