diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-28 09:04:19 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-28 09:06:38 +0300 |
commit | 1466f480c4ea894c2f0b23663fcdba644cceb3f8 (patch) | |
tree | d50be1db2281f9f8655b21e67b75b8b80219ee49 /source/blender/python/intern/bpy_traceback.h | |
parent | 0ce6ed47533f715a72b139cb47a4f2dfb5a0bb39 (diff) |
Python: select the start-end range of syntax errors
Python 3.10's syntax errors can specify a range.
Use this for text editor error selection.
Diffstat (limited to 'source/blender/python/intern/bpy_traceback.h')
-rw-r--r-- | source/blender/python/intern/bpy_traceback.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_traceback.h b/source/blender/python/intern/bpy_traceback.h index c96f8751989..2ebdab527e8 100644 --- a/source/blender/python/intern/bpy_traceback.h +++ b/source/blender/python/intern/bpy_traceback.h @@ -10,7 +10,8 @@ extern "C" { #endif -void python_script_error_jump(const char *filepath, int *r_lineno, int *r_offset); +void python_script_error_jump( + const char *filepath, int *r_lineno, int *r_offset, int *r_lineno_end, int *r_offset_end); #ifdef __cplusplus } |