nielsAD / lape

Scripting engine with Pascal-like syntax for FPC and Delphi
112 stars 26 forks source link

Add GetCallerLocation, GetExceptionLocation and the ability to raise an exception at one of these locations #185

Closed ollydev closed 1 year ago

ollydev commented 1 year ago

Lape now supports fancyness like:

raise 'Some Exception' at GetCallerLocation();

GetCallerLocation GetExceptionLocation returns pointer to DocPos.

Use GetCallerLocationStr GetExceptionLocationStr for string.